forked from MarseyWorld/MarseyWorld
refresh /orgy automatically
parent
9b75debb2d
commit
9a877378c9
|
@ -38,3 +38,12 @@ orgy_file.addEventListener("timeupdate", function(){
|
|||
}, 300000);
|
||||
}
|
||||
});
|
||||
|
||||
const now = new Date();
|
||||
const now_utc = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), now.getUTCHours(), now.getUTCMinutes(), now.getUTCSeconds());
|
||||
|
||||
let millis = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), 0, 0, 10) - now;
|
||||
if (millis < 0)
|
||||
millis += 86400000;
|
||||
|
||||
setTimeout(() => location.reload(), millis);
|
||||
|
|
Loading…
Reference in New Issue