mirror of https://github.com/jitsi/jitsi-meet
Due to local storage limitations we might end up making the URL huge when we save the state there. Avoid the issue at the root by never storing URLs in that case. Closes: https://github.com/jitsi/jitsi-meet/issues/11567pull/11572/head jitsi-meet_7339
parent
7f2fec756d
commit
d9eedb0dad
@ -0,0 +1,16 @@ |
||||
/** |
||||
* Checks whether we are loaded in iframe. |
||||
* |
||||
* @returns Whether the current page is loaded in an iframe. |
||||
*/ |
||||
export function inIframe(): boolean { |
||||
if (navigator.product === 'ReactNative') { |
||||
return false; |
||||
} |
||||
|
||||
try { |
||||
return window.self !== window.top; |
||||
} catch (e) { |
||||
return true; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue