Merge pull request #91 from cauli/fix/avoid-devtools-reload
Fix reloading unintentionally from devtools
This commit is contained in:
commit
c1ec19768c
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user