Show window once ready-to-show

This commit is contained in:
akshitkrnagpal 2018-07-04 08:33:40 +05:30 committed by Saúl Ibarra Corretgé
parent d0b5e0cecc
commit 5ba65fb7d2

View file

@ -91,6 +91,7 @@ function createJitsiMeetWindow() {
height: jitsiMeetWindowState.height,
minWidth: 800,
minHeight: 600,
show: false,
titleBarStyle: 'hidden',
webPreferences: {
nativeWindowOpen: true
@ -116,6 +117,9 @@ function createJitsiMeetWindow() {
jitsiMeetWindow.on('closed', () => {
jitsiMeetWindow = null;
});
jitsiMeetWindow.once('ready-to-show', () => {
jitsiMeetWindow.show();
});
}
// Start the application: