Developers menu button to show dev tools
This commit is contained in:
@@ -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'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user