add support to open devtools for webview content
This commit is contained in:
parent
2a56a32475
commit
5276690a48
@ -87,7 +87,7 @@ module.exports = function (window) {
|
|||||||
label: 'Toggle DevTools',
|
label: 'Toggle DevTools',
|
||||||
accelerator: 'Alt+Command+I',
|
accelerator: 'Alt+Command+I',
|
||||||
click: function() {
|
click: function() {
|
||||||
window.toggleDevTools()
|
window.rpc.contextualToggleDevTools()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -5,7 +5,8 @@ var pushable = require('pull-pushable')
|
|||||||
var Api = require('scuttlebot/lib/api')
|
var Api = require('scuttlebot/lib/api')
|
||||||
|
|
||||||
var clientApi = {
|
var clientApi = {
|
||||||
navigate: 'async'
|
navigate: 'async',
|
||||||
|
contextualToggleDevTools: 'async'
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = function (window, sbot, params) {
|
module.exports = function (window, sbot, params) {
|
||||||
|
Loading…
Reference in New Issue
Block a user