removed dev tools

This commit is contained in:
DJ2LS 2021-09-05 17:30:46 +02:00 committed by GitHub
parent d2a22c9b36
commit 2786fcd790
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,13 +48,14 @@ var daemonProcess = null;
function createWindow() {
win = new BrowserWindow({
width: 1220,
height: 920,
height: 830,
autoHideMenuBar: true,
icon: __dirname + '/src/app-icon.png',
webPreferences: {
//preload: path.join(__dirname, 'preload-main.js'),
preload: require.resolve('./preload-main.js'),
nodeIntegration: true,
nativeWindowOpen: true,
contextIsolation: false,
enableRemoteModule: false, //https://stackoverflow.com/questions/53390798/opening-new-window-electron/53393655 https://github.com/electron/remote
}
@ -63,10 +64,12 @@ function createWindow() {
win.setMenuBarVisibility(false)
//open dev tools
/*
win.webContents.openDevTools({
mode: 'undocked',
activate: true,
})
*/
win.loadFile('src/index.html')
/*
data = new BrowserWindow({