Browse Source

add support to open devtools for webview content

Paul Frazee 5 years ago
parent
commit
5276690a48
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      app/lib/menu.js
  2. 2
    1
      app/lib/muxrpc-ipc.js

+ 1
- 1
app/lib/menu.js View File

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

+ 2
- 1
app/lib/muxrpc-ipc.js View File

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

Loading…
Cancel
Save