Procházet zdrojové kódy

fix(google-auth): popup.

master
hristoterezov před 7 roky
rodič
revize
a5f2cb8bd9

+ 8
- 0
modules/API/external/electronPopupsConfig.json Zobrazit soubor

@@ -0,0 +1,8 @@
1
+{
2
+    "google-auth": {
3
+        "matchPatterns": {
4
+            "url": "accounts.google.com"
5
+        },
6
+        "target": "electron"
7
+    }
8
+}

+ 14
- 0
modules/API/external/external_api.js Zobrazit soubor

@@ -6,6 +6,8 @@ import {
6 6
     Transport
7 7
 } from '../../transport';
8 8
 
9
+import electronPopupsConfig from './electronPopupsConfig.json';
10
+
9 11
 const logger = require('jitsi-meet-logger').getLogger(__filename);
10 12
 
11 13
 const ALWAYS_ON_TOP_FILENAMES = [
@@ -712,4 +714,16 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
712 714
     removeEventListeners(eventList) {
713 715
         eventList.forEach(event => this.removeEventListener(event));
714 716
     }
717
+
718
+    /**
719
+     * Returns the configuration for electron for the windows that are open
720
+     * from Jitsi Meet.
721
+     *
722
+     * @returns {Promise<Object>}
723
+     *
724
+     * NOTE: For internal use only.
725
+     */
726
+    _getElectronPopupsConfig() {
727
+        return Promise.resolve(electronPopupsConfig);
728
+    }
715 729
 }

Načítá se…
Zrušit
Uložit