fix: prevent unsupported wakelock

This commit is contained in:
Carlos Valente
2025-12-09 08:11:48 +01:00
committed by Carlos Valente
parent 14e21214af
commit cd39227af7
@@ -25,6 +25,11 @@ export function useWakelock() {
const sentinel = wakeLockSentinelRef.current;
if (!sentinel || sentinel.released) {
wakeLockSentinelRef.current = null;
if (!canUseWakeLock) {
return;
}
navigator.wakeLock
.request('screen')
.then((sentinel) => {