mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2024-12-22 11:39:25 +00:00
Open dev tools only if app is not packaged
This commit is contained in:
parent
4fb5627ac1
commit
3edd9d52bc
1 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ function createWindow(): BrowserWindow {
|
|||
tray.setContextMenu(trayMenu);
|
||||
|
||||
console.log(`createWindow(): icon = ${wdwIcon}`);
|
||||
|
||||
console.log(`app.isPackaged: ${app.isPackaged}`);
|
||||
// Create the browser window.
|
||||
win = new BrowserWindow({
|
||||
x: 0,
|
||||
|
@ -69,13 +69,13 @@ function createWindow(): BrowserWindow {
|
|||
nodeIntegration: false,
|
||||
allowRunningInsecureContent: (serve),
|
||||
contextIsolation: true,
|
||||
devTools: true
|
||||
devTools: !app.isPackaged
|
||||
},
|
||||
autoHideMenuBar: true,
|
||||
icon: wdwIcon
|
||||
});
|
||||
|
||||
win.webContents.openDevTools();
|
||||
if (!app.isPackaged)win.webContents.openDevTools();
|
||||
|
||||
if (serve) {
|
||||
const debug = require('electron-debug');
|
||||
|
|
Loading…
Reference in a new issue