add support to open devtools for webview content

This commit is contained in:
Paul Frazee 2015-07-19 12:16:12 -05:00
parent 2a56a32475
commit 5276690a48
2 changed files with 3 additions and 2 deletions

View File

@ -87,7 +87,7 @@ module.exports = function (window) {
label: 'Toggle DevTools',
accelerator: 'Alt+Command+I',
click: function() {
window.toggleDevTools()
window.rpc.contextualToggleDevTools()
}
},
]

View File

@ -5,7 +5,8 @@ var pushable = require('pull-pushable')
var Api = require('scuttlebot/lib/api')
var clientApi = {
navigate: 'async'
navigate: 'async',
contextualToggleDevTools: 'async'
}
module.exports = function (window, sbot, params) {