Created
November 2, 2020 15:32
-
-
Save robmazan/7feed42782f0b1c003d87be12d2272b1 to your computer and use it in GitHub Desktop.
Debug focus changes in browser
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(() => (window.prevFocus !== document.activeElement) && (console.log(document.activeElement),window.prevFocus=document.activeElement), 500) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment