We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 064aa45 commit 7ab838dCopy full SHA for 7ab838d
1 file changed
src/public/transcription/useWakeLock.ts
@@ -9,7 +9,10 @@ export const useWakeLock = () => {
9
const wakeLockRef = useRef<WakeLockSentinel | null>(null)
10
11
useEffect(() => {
12
- if (!('wakeLock' in navigator)) return
+ if (!('wakeLock' in navigator)) {
13
+ console.log('useWakeLock: Screen Wake Lock API is not supported in this browser.')
14
+ return
15
+ }
16
17
const acquire = async () => {
18
try {
0 commit comments