diff --git a/src/main/windows/main.js b/src/main/windows/main.js index f310ad70..6aaf350f 100644 --- a/src/main/windows/main.js +++ b/src/main/windows/main.js @@ -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' }) } } diff --git a/src/main/windows/webtorrent.js b/src/main/windows/webtorrent.js index 0534eb7d..ec0ccd2b 100644 --- a/src/main/windows/webtorrent.js +++ b/src/main/windows/webtorrent.js @@ -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' }) } }