Developers menu button to show dev tools

This commit is contained in:
DC
2016-04-05 18:40:11 -07:00
parent 074c5824e8
commit 46a6ded095
3 changed files with 19 additions and 5 deletions

View File

@@ -65,6 +65,11 @@ function toggleDevTools () {
}
}
function showWebTorrentWindow () {
windows.webtorrent.show()
windows.webtorrent.webContents.openDevTools({detach: true})
}
function reloadWindow () {
log('reloadWindow')
if (windows.main) {
@@ -255,6 +260,10 @@ function getAppMenuTemplate () {
: 'Ctrl+Shift+I',
click: toggleDevTools
},
{
label: 'Show WebTorrent Process',
click: showWebTorrentWindow
},
{
type: 'separator'
},