()
| 11 | // We track whther the current window has the focus or not. |
| 12 | let windowHasFocus = null; |
| 13 | function windowIsFocused() { |
| 14 | return windowHasFocus; |
| 15 | } |
| 16 | |
| 17 | function initWindowIsFocused() { |
| 18 | DomUtils.documentReady().then(() => windowHasFocus = document.hasFocus()); |
no outgoing calls
no test coverage detected