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
commit c1ec19768c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()