mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-27 06:24:52 +02:00
ui: open default browser on hyperlink (#8)
This commit is contained in:
parent
9e6208b2af
commit
20351a4701
5
main.js
5
main.js
|
@ -69,6 +69,11 @@ function createJitsiMeetWindow () {
|
|||
jitsiMeetWindow = new BrowserWindow(jitsiMeetWindowOptions);
|
||||
jitsiMeetWindow.loadURL(indexURL);
|
||||
|
||||
jitsiMeetWindow.webContents.on('new-window', function(event, url) {
|
||||
event.preventDefault();
|
||||
electron.shell.openExternal(url);
|
||||
});
|
||||
|
||||
jitsiMeetWindow.on("closed", () => {
|
||||
jitsiMeetWindow = null;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue