Hide menu bar in calls popout window (#2475)
This commit is contained in:
@@ -82,6 +82,15 @@ export default class CallsWidgetWindow extends EventEmitter {
|
||||
ipcMain.on(CALLS_WIDGET_SHARE_SCREEN, this.onShareScreen);
|
||||
ipcMain.on(CALLS_JOINED_CALL, this.onJoinedCall);
|
||||
|
||||
this.win.webContents.setWindowOpenHandler(() => {
|
||||
return {
|
||||
action: 'allow',
|
||||
overrideBrowserWindowOptions: {
|
||||
autoHideMenuBar: true,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
this.load();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user