Skip to content

Commit

Permalink
Fix require issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pakastin committed Jun 3, 2019
1 parent c0f5103 commit c8f2a5a
Show file tree
Hide file tree
Showing 3 changed files with 545 additions and 238 deletions.
10 changes: 4 additions & 6 deletions app/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { app, ipcMain } = require('electron');
const path = require('path');
const { menubar } = require('@amaurymartiny/menubar');
const menubar = require('menubar');
const { autoUpdater } = require('electron-updater');
const { systemPreferences } = require('electron');

Expand All @@ -12,10 +12,8 @@ const mb = menubar({
icon: path.join(__dirname, 'Icon.png'),
preloadWindow: true,
resizable: false,
browserWindow: {
webPreferences: {
nodeIntegration: true
}
webPreferences: {
nodeIntegration: true
}
});

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

mb.on('hide', () => {
mb.browserWindow.reload();
mb.window.reload();
mb.tray.setImage(currentIcon);
});

Expand Down

0 comments on commit c8f2a5a

Please sign in to comment.