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(dropbox-auth): In Electron.
Hristo Terezov55149670da4d
diff --git a/modules/API/external/electronPopupsConfig.json b/modules/API/external/electronPopupsConfig.jsonindex 1bef15060f..5b27cb9e36 100644--- a/modules/API/external/electronPopupsConfig.json+++ b/modules/API/external/electronPopupsConfig.json@@ -4,5 +4,11 @@"url": "accounts.google.com"},"target": "electron"+ },+ "dropbox-auth": {+ "matchPatterns": {+ "url": "dropbox.com/oauth2/authorize"+ },+ "target": "electron"}}diff --git a/react/features/dropbox/functions.web.js b/react/features/dropbox/functions.web.jsindex 244060e7b7..2fdfe7e9bf 100644--- a/react/features/dropbox/functions.web.js+++ b/react/features/dropbox/functions.web.js@@ -23,12 +23,10 @@ function authorize(authUrl: string): Promise<string> {return new Promise(resolve => {const popup = window.open(authUrl, windowName);- gloabalNS.oauthCallbacks[windowName] = () => {- const returnURL = popup.location.href;-+ gloabalNS.oauthCallbacks[windowName] = url => {popup.close();delete gloabalNS.oauthCallbacks.windowName;- resolve(returnURL);+ resolve(url);};});}diff --git a/static/oauth.html b/static/oauth.htmlindex c876db56d3..b5e082e6d7 100644--- a/static/oauth.html+++ b/static/oauth.html@@ -16,7 +16,7 @@if (globalNS.oauthCallbacks&& typeof globalNS.oauthCallbacks[windowName]=== 'function') {- globalNS.oauthCallbacks[windowName]();+ globalNS.oauthCallbacks[windowName](window.location.href);}}})();