Logo
Explore Help
Register Sign In
ZF/jitsi-meet
1
0
Fork 0
You've already forked jitsi-meet
mirror of https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git synced 2026-05-14 12:57:49 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
27765b47d73b3ca53781408fc05fe6fb1df4e2cf
jitsi-meet/react/features/base/util/iframeUtils.ts

17 lines
339 B
TypeScript
Raw Normal View History

fix(recent-list) do not store room when inside an iframe 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/11567
2022-05-23 13:28:34 +02:00
/**
* Checks whether we are loaded in iframe.
*
fix(lint) make sure eslint also runs on TypeScript files (#11777) Co-authored-by: robertpin <robert.pin9@gmail.com> Co-authored-by: Gabriel Borlea <gabriel.borlea@8x8.com>
2022-07-11 14:30:37 +02:00
* @returns {boolean} Whether the current page is loaded in an iframe.
fix(recent-list) do not store room when inside an iframe 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/11567
2022-05-23 13:28:34 +02:00
*/
export function inIframe(): boolean {
if (navigator.product === 'ReactNative') {
return false;
}
try {
return window.self !== window.top;
} catch (e) {
return true;
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 173ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API