sda-1971 make the pop-out full screen enable

This commit is contained in:
Johan Kwarnmark 2020-05-26 15:01:26 +02:00
parent b7bafe932f
commit 53ea47b7ee

View File

@ -159,6 +159,7 @@ export const handleChildWindow = (webContents: WebContents): void => {
// Event needed to hide native menu bar
childWebContents.once('did-start-loading', () => {
const browserWin = BrowserWindow.fromWebContents(childWebContents) as ICustomBrowserWindow;
browserWin.setFullScreenable(true);
browserWin.origin = windowHandler.url;
if (isWindowsOS && browserWin && !browserWin.isDestroyed()) {
browserWin.setMenuBarVisibility(false);