Fix reloading unintentionally from devtools

This commit is contained in:
Cauli Tomaz 2019-07-29 13:07:47 +02:00
parent 8de3ba10bc
commit b4946516d0
No known key found for this signature in database
GPG Key ID: 2B8B1D29D9CCC99B

View File

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