Skip to content

Commit

Permalink
fix: removes menuBar from appearing on output windows (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
2xAA authored Sep 14, 2021
1 parent 41335b3 commit 5d6ef6a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/background/window-prefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ const windowPrefs = {
(event, url, frameName, disposition, options) => {
if (frameName === "modal") {
event.preventDefault();
event.newGuest = new BrowserWindow(options);
event.newGuest = new BrowserWindow({
...options,
autoHideMenuBar: true
});

setTimeout(() => {
event.newGuest.setMenu(null);
}, 500);
event.newGuest.removeMenu();
}
}
);
Expand Down

0 comments on commit 5d6ef6a

Please sign in to comment.