mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-17 02:26:43 +03:00
9 lines
190 B
TypeScript
9 lines
190 B
TypeScript
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;
|
|
}
|
|
})();
|