Closed alexstrat closed 5 years ago
Note that serving the devtools_page
and call devToolsWebContents.executeJavaScript('DevToolsAPI.addExtensions(..)')
seems to be the correct way of supporting Dev Tools extension. Don't try to implement the devtools.*
API.
tabs.executeScript
APINote it's required to add the
electron-chrome-extension
preload to the session to make sure the preloads are executed in devtool's webContents as well.