mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-16 02:17:46 +01:00
Prevent settings menu scroll on iOS proxy iframe from shifting entire UI (#17024)
This commit is contained in:
8
web/src/utils/isIFrame.ts
Normal file
8
web/src/utils/isIFrame.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export const isInIframe = (() => {
|
||||
try {
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
// If we get a security error, we're definitely in an iframe
|
||||
return true;
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user