Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(iframe) don't register service worker when in an iframe
Saúl Ibarra Corretgé5bc424459f73
diff --git a/index.html b/index.htmlindex 361239fb88..fb249fe2a5 100644--- a/index.html+++ b/index.html@@ -25,8 +25,16 @@Component: JitsiMeetJS.app.entryPoints.APP})+ const inIframe = () => {+ try {+ return window.self !== window.top;+ } catch (e) {+ return true;+ }+ };+const isElectron = navigator.userAgent.includes('Electron');- const shouldRegisterWorker = !isElectron && 'serviceWorker' in navigator;+ const shouldRegisterWorker = !isElectron && !inIframe() && 'serviceWorker' in navigator;if (shouldRegisterWorker) {navigator.serviceWorker