Created
August 14, 2020 00:59
-
-
Save shockby/c36ee361f9c5eda3aa8a4de8644a777f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| :javascript | |
| function init() { | |
| console.log('focus'); | |
| location.reload(); | |
| } | |
| window.addEventListener('focus', init); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment