소스 검색

fix(google-auth): popup.

master
hristoterezov 6 년 전
부모
커밋
a5f2cb8bd9
2개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  1. 8
    0
      modules/API/external/electronPopupsConfig.json
  2. 14
    0
      modules/API/external/external_api.js

+ 8
- 0
modules/API/external/electronPopupsConfig.json 파일 보기

@@ -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 파일 보기

@@ -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
 }

Loading…
취소
저장