Electron 4: Migrate .openDevTools() for new 'detach' pattern

This commit is contained in:
David Ernst
2019-06-03 21:52:06 -07:00
parent c204b7a82c
commit a039cbf348
2 changed files with 2 additions and 2 deletions

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' })
}
}