mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-26 06:10:07 +02:00
fix(google-auth): popup.
This commit is contained in:
parent
decb351ed3
commit
1d229dd9ec
|
@ -9,6 +9,7 @@ import {
|
|||
RemoteControl,
|
||||
setupScreenSharingForWindow,
|
||||
setupAlwaysOnTopRender,
|
||||
initPopupsConfigurationRender,
|
||||
setupWiFiStats
|
||||
} from 'jitsi-meet-electron-utils';
|
||||
|
||||
|
@ -120,6 +121,8 @@ class Conference extends Component<Props, *> {
|
|||
parentNode,
|
||||
roomName
|
||||
});
|
||||
initPopupsConfigurationRender(this._api);
|
||||
|
||||
const iframe = this._api.getIFrame();
|
||||
|
||||
setupScreenSharingForWindow(iframe);
|
||||
|
|
9
main.js
9
main.js
|
@ -7,7 +7,9 @@ const BrowserWindow = electron.BrowserWindow;
|
|||
const isDev = require('electron-is-dev');
|
||||
|
||||
const {
|
||||
setupAlwaysOnTopMain
|
||||
setupAlwaysOnTopMain,
|
||||
initPopupsConfigurationMain,
|
||||
getPopupTarget
|
||||
} = require('jitsi-meet-electron-utils');
|
||||
|
||||
const path = require('path');
|
||||
|
@ -84,9 +86,12 @@ function setAPPListeners() {
|
|||
function createJitsiMeetWindow() {
|
||||
jitsiMeetWindow = new BrowserWindow(jitsiMeetWindowOptions);
|
||||
jitsiMeetWindow.loadURL(indexURL);
|
||||
initPopupsConfigurationMain(jitsiMeetWindow);
|
||||
|
||||
jitsiMeetWindow.webContents.on('new-window', (event, url, frameName) => {
|
||||
if (frameName !== 'AlwaysOnTop') {
|
||||
const target = getPopupTarget(url, frameName);
|
||||
|
||||
if (!target || target === 'browser') {
|
||||
event.preventDefault();
|
||||
electron.shell.openExternal(url);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue