Last active
January 10, 2021 21:44
-
-
Save caio-vinicius/190f30593030a9ad5744b277c4aacfb9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function() { | |
fetch(URL).then(function (result) { | |
if (result.status == 200) { | |
window.location.href = URL; | |
} | |
}) | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment