Add isBrowserTabFocused, fixed is tests
This commit is contained in:
2
test/isBrowserTabFocused/isBrowserTabFocused.js
Normal file
2
test/isBrowserTabFocused/isBrowserTabFocused.js
Normal file
@ -0,0 +1,2 @@
|
||||
const isBrowserTabFocused = () => !document.hidden;
|
||||
module.exports = isBrowserTabFocused;
|
||||
Reference in New Issue
Block a user