Merge pull request #1597 from dsernst/electron-4-detached-devtools

Electron 4: Migrate .openDevTools() for new 'detach' pattern
This commit is contained in:
Borewit
2019-06-17 09:36:49 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ function toggleDevTools () {
if (main.win.webContents.isDevToolsOpened()) {
main.win.webContents.closeDevTools()
} else {
main.win.webContents.openDevTools({ detach: true })
main.win.webContents.openDevTools({ mode: 'detach' })
}
}

View File

@@ -56,6 +56,6 @@ function toggleDevTools () {
webtorrent.win.webContents.closeDevTools()
webtorrent.win.hide()
} else {
webtorrent.win.webContents.openDevTools({ detach: true })
webtorrent.win.webContents.openDevTools({ mode: 'detach' })
}
}