MCPcopy
hub / github.com/philc/vimium / windowIsFocused

Function windowIsFocused

content_scripts/vimium_frontend.js:13–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 5

setIndicatorMethod · 0.85
activateLinkMethod · 0.85
getLocalHintsForElementFunction · 0.85
vimium_frontend.jsFile · 0.85
getFocusStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected