Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Seconds
- var RELOAD_TIME = 600;
- function __checkTime () {
- if(RELOAD_TIME <= 0 ) {
- window.location.reload();
- }
- }
- function __count () {
- setTimeout(() => {
- RELOAD_TIME--;
- __checkTime();
- __count();
- }, 1000);
- }
- __count();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement