getstation / electron-chrome-extension

Implementation of Chrome extension APIs for Electron
139 stars 26 forks source link

Fix Devtools extensions support #44

Closed alexstrat closed 5 years ago

alexstrat commented 5 years ago

Note 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.

alexstrat commented 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.