Skip to content

Commit c8f2a5a

Browse files
committed
Fix require issue
1 parent c0f5103 commit c8f2a5a

File tree

3 files changed

+545
-238
lines changed

3 files changed

+545
-238
lines changed

app/main.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { app, ipcMain } = require('electron');
22
const path = require('path');
3-
const { menubar } = require('@amaurymartiny/menubar');
3+
const menubar = require('menubar');
44
const { autoUpdater } = require('electron-updater');
55
const { systemPreferences } = require('electron');
66

@@ -12,10 +12,8 @@ const mb = menubar({
1212
icon: path.join(__dirname, 'Icon.png'),
1313
preloadWindow: true,
1414
resizable: false,
15-
browserWindow: {
16-
webPreferences: {
17-
nodeIntegration: true
18-
}
15+
webPreferences: {
16+
nodeIntegration: true
1917
}
2018
});
2119

@@ -35,7 +33,7 @@ mb.on('ready', () => {
3533
});
3634

3735
mb.on('hide', () => {
38-
mb.browserWindow.reload();
36+
mb.window.reload();
3937
mb.tray.setImage(currentIcon);
4038
});
4139

0 commit comments

Comments
 (0)