fix(google-auth): popup.

This commit is contained in:
hristoterezov 2018-06-12 17:40:12 -05:00 committed by Hristo Terezov
parent 78866b0dd7
commit a5f2cb8bd9
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{
"google-auth": {
"matchPatterns": {
"url": "accounts.google.com"
},
"target": "electron"
}
}

View File

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