Friday, May 17, 2024
176
rated 0 times [  180] [ 4]  / answers: 1 / hits: 22675  / 6 Years ago, fri, november 16, 2018, 12:00:00

I am facing some trouble adding chrome addons into my Electron BrowserWindow.



Before creating my window (and after the ready event has fired), I try to add a devtools extension that my browser needs to do screen sharing.



BrowserWindow.addDevToolsExtension('/home/USER/.config/chromium/Default/Extensions/dkjdkjlcilokfaigbckcipicchgoazeg/1.5_0');


I followed this Electron guide, and it worked for their example (adding the react develop tool). When I do the exact same thing with my own chrome extension I have this error:



[4735:1116/163422.268391:ERROR:CONSOLE(7701)] Skipping extension with invalid URL: chrome-extension://extension-name, source: chrome-devtools://devtools/bundled/shell.js (7701)


I don't really get why the error specified is invalid URL since I'm doing the exact same thing / process with the react addon without a problem. I also have no idea what to do. Is it possible that my chrome addon is not Electron-compatible?


More From » google-chrome-extension

 Answers
1

Support for Chromium extensions in Electron is actively being worked on at the moment. The support isn't complete yet, but the GitHub issue seems to have regular updates being posted.



Fingers crossed!



A current pull request is open for 'just enough extensions [api] to load a simple ... extension'


[#53100] Monday, November 12, 2018, 6 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
melindab

Total Points: 511
Total Questions: 109
Total Answers: 106

Location: San Marino
Member since Thu, Jun 25, 2020
4 Years ago
;