mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-26 22:24:50 +02:00
Open WebRTC internals when in dev mode
This commit is contained in:
parent
ebdd32a795
commit
1c6b603d2f
20
main.js
20
main.js
|
@ -72,6 +72,8 @@ if (isDev) {
|
|||
*/
|
||||
let mainWindow = null;
|
||||
|
||||
let webrtcInternalsWindow = null;
|
||||
|
||||
/**
|
||||
* Add protocol data
|
||||
*/
|
||||
|
@ -230,6 +232,20 @@ function createJitsiMeetWindow() {
|
|||
handleProtocolCall(process.argv.pop());
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens new window with WebRTC internals.
|
||||
*/
|
||||
function createWebRTCInternalsWindow() {
|
||||
const options = {
|
||||
minWidth: 800,
|
||||
minHeight: 600,
|
||||
show: true
|
||||
};
|
||||
|
||||
webrtcInternalsWindow = new BrowserWindow(options);
|
||||
webrtcInternalsWindow.loadURL('chrome://webrtc-internals');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handler for application protocol links to initiate a conference.
|
||||
*/
|
||||
|
@ -292,6 +308,10 @@ app.on('certificate-error',
|
|||
|
||||
app.on('ready', createJitsiMeetWindow);
|
||||
|
||||
if (isDev) {
|
||||
app.on('ready', createWebRTCInternalsWindow);
|
||||
}
|
||||
|
||||
app.on('second-instance', (event, commandLine) => {
|
||||
/**
|
||||
* If someone creates second instance of the application, set focus on
|
||||
|
|
Loading…
Reference in a new issue