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 764aec7 commit 2a7e821Copy full SHA for 2a7e821
src/components/Global/ScreenOrientationLocker.tsx
@@ -20,7 +20,7 @@ export function ScreenOrientationLocker() {
20
21
const handleOrientationChange = () => {
22
// if the orientation is no longer portrait, try to lock it back.
23
- if (!screen.orientation.type.startsWith('portrait')) {
+ if (screen.orientation && !screen.orientation.type.startsWith('portrait')) {
24
lockOrientation()
25
}
26
0 commit comments