Skip to content
Permalink
Browse files

Fix require issue

  • Loading branch information...
pakastin committed Jun 3, 2019
1 parent c0f5103 commit c8f2a5a34a89cfc79aa90057c1f99a185683c973
Showing with 545 additions and 238 deletions.
  1. +4 −6 app/main.js
  2. +537 −230 package-lock.json
  3. +4 −2 package.json
@@ -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');

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

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

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

0 comments on commit c8f2a5a

Please sign in to comment.
You can’t perform that action at this time.