MCPcopy Create free account
hub / github.com/botbotrobotics/BotBrain / handleVisibilityChange

Function handleVisibilityChange

frontend/src/hooks/useWakeLock.ts:24–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 };
23
24 const handleVisibilityChange = () => {
25 if (wakeLockRef.current && document.visibilityState === 'visible') {
26 requestWakeLock();
27 }
28 };
29
30 requestWakeLock();
31 document.addEventListener('visibilitychange', handleVisibilityChange);

Callers

nothing calls this directly

Calls 1

requestWakeLockFunction · 0.85

Tested by

no test coverage detected