Merge pull request #91 from cauli/fix/avoid-devtools-reload

Fix reloading unintentionally from devtools
This commit is contained in:
Лu Лinveгa
2019-07-30 09:26:26 +12:00
committed by GitHub

View File

@@ -22,6 +22,8 @@ app.on('ready', () => {
webPreferences: { zoomFactor: 1.0, nodeIntegration: true, backgroundThrottling: false }
})
app.win.webContents.removeAllListeners('devtools-reload-page');
app.win.loadURL(`file://${__dirname}/sources/index.html`)
// app.inspect()