()
| 22 | }; |
| 23 | |
| 24 | const handleVisibilityChange = () => { |
| 25 | if (wakeLockRef.current && document.visibilityState === 'visible') { |
| 26 | requestWakeLock(); |
| 27 | } |
| 28 | }; |
| 29 | |
| 30 | requestWakeLock(); |
| 31 | document.addEventListener('visibilitychange', handleVisibilityChange); |
nothing calls this directly
no test coverage detected