mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-15 03:22:10 +03:00
fix(web): handle undefined screen.orientation
This commit is contained in:
parent
41ed013cc4
commit
39bd720d71
@ -401,7 +401,7 @@ export default function LiveCameraView({
|
||||
useEffect(() => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const screenOrientation = screen.orientation as any;
|
||||
if (!screenOrientation.lock || !screenOrientation.unlock) {
|
||||
if (!screenOrientation?.lock || !screenOrientation?.unlock) {
|
||||
// Browser does not support ScreenOrientation APIs that we need
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user