MCPcopy
hub / github.com/ai/visibilityjs / onFocus

Function onFocus

lib/visibility.fallback.js:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 var onFocus = function () {
36 document.hidden = false;
37 document.visibilityState = 'visible';
38 fireEvent();
39 };
40 var onBlur = function () {
41 document.hidden = true;
42 document.visibilityState = 'hidden';

Callers

nothing calls this directly

Calls 1

fireEventFunction · 0.85

Tested by

no test coverage detected