Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(google-auth): popup.

hristoterezova5f2cb8bd93c
diff --git a/modules/API/external/electronPopupsConfig.json b/modules/API/external/electronPopupsConfig.json
new file mode 100644
index 0000000000..1bef15060f
--- /dev/null
+++ b/modules/API/external/electronPopupsConfig.json
@@ -0,0 +1,8 @@
+{
+ "google-auth": {
+ "matchPatterns": {
+ "url": "accounts.google.com"
+ },
+ "target": "electron"
+ }
+}
diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js
index fa5271cb44..870d4da318 100644
--- a/modules/API/external/external_api.js
+++ b/modules/API/external/external_api.js
@@ -6,6 +6,8 @@ import {
Transport
} from '../../transport';
+import electronPopupsConfig from './electronPopupsConfig.json';
+
const logger = require('jitsi-meet-logger').getLogger(__filename);
const ALWAYS_ON_TOP_FILENAMES = [
@@ -712,4 +714,16 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
removeEventListeners(eventList) {
eventList.forEach(event => this.removeEventListener(event));
}
+
+ /**
+ * Returns the configuration for electron for the windows that are open
+ * from Jitsi Meet.
+ *
+ * @returns {Promise<Object>}
+ *
+ * NOTE: For internal use only.
+ */
+ _getElectronPopupsConfig() {
+ return Promise.resolve(electronPopupsConfig);
+ }
}