Skip to content

Commit 4476c85

Browse files
authored
Merge pull request #11 from alv67/patch-1
Fix method name : now setAutoHideMenuBar()
2 parents 6327b52 + 0b3a1cf commit 4476c85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ function createWindow() {
330330
const menu = Menu.buildFromTemplate(template);
331331
Menu.setApplicationMenu(menu);
332332

333-
if (process.platform !== 'darwin') { mainWindow.autoHideMenuBar(true); }
333+
if (process.platform !== 'darwin') { mainWindow.setAutoHideMenuBar(true); }
334334
mainWindow.loadURL(`file://${__dirname}/load.html`);
335335

336336
mainWindow.webContents.on('did-get-response-details', function(event, status, newURL, originalURL, httpResponseCode) {
@@ -398,4 +398,4 @@ RED.start().then(function() {
398398
server.listen(listenPort,"localhost",function() {
399399
mainWindow.loadURL("http://localhost:"+listenPort+urlStart);
400400
});
401-
});
401+
});

0 commit comments

Comments
 (0)