Skip to content

Commit fca8f46

Browse files
authored
Fix type error in Brave browser (#569)
1 parent 0fc504e commit fca8f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/state/fullscreen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function createFullscreenState() {
1414

1515
// Experimental Keyboard API: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/keyboard
1616
// eslint-disable-next-line @typescript-eslint/no-explicit-any
17-
const keyboardLockApiSupported: Readonly<boolean> = "keyboard" in navigator && "lock" in (navigator as any).keyboard;
17+
const keyboardLockApiSupported: Readonly<boolean> = "keyboard" in navigator && (navigator as any).keyboard && "lock" in (navigator as any).keyboard;
1818

1919
const enterFullscreen = async (): Promise<void> => {
2020
await document.documentElement.requestFullscreen();

0 commit comments

Comments
 (0)