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
Handles the case where browser is blocking popups and prevents from opening authentication window.
paweldomas78f8521145a5
diff --git a/app.js b/app.jsindex 1801f418c8..38cc07a320 100644--- a/app.js+++ b/app.js@@ -1074,6 +1074,13 @@ function authenticateClicked() {roomName, doJoinAfterFocus);authenticationWindow = null;});+ if (!authenticationWindow) {+ Toolbar.showAuthenticateButton(true);+ messageHandler.openMessageDialog(+ null, "Your browser is blocking popup windows from this site." ++ " Please enable popups in your browser security settings" ++ " and try again.");+ }});};diff --git a/message_handler.js b/message_handler.jsindex 40a47ccea3..39c8987486 100644--- a/message_handler.js+++ b/message_handler.js@@ -89,6 +89,9 @@ var messageHandler = (function(my) {* @param h the height of the popup window* @param onPopupClosed optional callback function called when popup window* has been closed.+ *+ * @returns popup window object if opened successfully or undefined+ * in case we failed to open it(popup blocked)*/my.openCenteredPopup = function (url, w, h, onPopupClosed) {var l = window.screenX + (window.innerWidth / 2) - (w / 2);@@ -96,7 +99,7 @@ var messageHandler = (function(my) {var popup = window.open(url, '_blank','top=' + t + ', left=' + l + ', width=' + w + ', height=' + h + '');- if (onPopupClosed) {+ if (popup && onPopupClosed) {var pollTimer = window.setInterval(function () {if (popup.closed !== false) {window.clearInterval(pollTimer);@@ -104,6 +107,7 @@ var messageHandler = (function(my) {}}, 200);}+ return popup;};/**