Created
October 22, 2022 19:46
-
-
Save oguzhancvdr/24833de891916107305d71a549f48028 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
const isTabActive = () => !document.hidden;isTabActive() | |
// true|false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check that the current TAB is in the background