diff options
| -rw-r--r-- | electron_js/main.js | 12 | ||||
| -rw-r--r-- | package.json | 7 |
2 files changed, 10 insertions, 9 deletions
diff --git a/electron_js/main.js b/electron_js/main.js index 86546de1..ecd5151a 100644 --- a/electron_js/main.js +++ b/electron_js/main.js @@ -56,7 +56,7 @@ function createAlternateWindow() { y: 10, width: 800, height: 800, - icon: path.join(__dirname, '/../icon.png'), + icon: path.join(__dirname, '/../resources/icon.png'), webPreferences:{nodeIntegration:false}}); const startUrl = process.env.ELECTRON_START_URL || url.format({ @@ -64,7 +64,7 @@ function createAlternateWindow() { protocol: 'file:', slashes: true }); - + newWin.loadURL(startUrl); } @@ -106,12 +106,12 @@ const mx = globalShortcut.register('CommandOrControl+Alt+F', () => { y: mainWindowState.y, width: mainWindowState.width, height: mainWindowState.height, - icon: path.join(__dirname, '/../icon.png'), + icon: path.join(__dirname, '/../resources/icon.png'), webPreferences:{nodeIntegration:false}}); // - console.log (__dirname+'/../icon.png'); + console.log (path.join(__dirname, '/../resources/icon.png')); + - win.webContents.session.webRequest.onHeadersReceived({}, (d, c) => { @@ -151,7 +151,7 @@ const mx = globalShortcut.register('CommandOrControl+Alt+F', () => { // const menu = Menu.buildFromTemplate(template) // Menu.setApplicationMenu(menu) - + const template = [ { diff --git a/package.json b/package.json index ecf8fb61..0a31483d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zmninjapro", "description": "Home security mobile app for ZoneMinder", - "version": "1.3.022", + "version":"1.3.022", "displayName": "zmNinja", "author": "Pliable Pixels", "license": "custom see LICENSE.md", @@ -131,7 +131,8 @@ "files": [ "electron_js/main.js", "www/**/*", - "!node_modules/**/*" + "!node_modules/**/*", + "resources/icon.png" ], "extraResources": [ "node_modules/electron-window-state/**/*", @@ -174,4 +175,4 @@ ] } } -}
\ No newline at end of file +} |
