WebExtensions Firefox API: Chrome undefined

I'm really trying to use the WebExtensions API on my nightly Firefox (dated today). I used to develop chrome web extensions and it works like a charm in Chrome.

I managed to install the extension. I followed this link: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Packaging_and_installation

The extension is installed correctly, but I cannot get it to work.

I constantly get the following error: "chrome - undefined". Did I miss something? (I noticed that the examples given here: https://github.com/mdn/webextensions-examples show how to use extensions, and "chrome. *" Is used without any problem.

Thanks in advance,

+4
source share
1 answer

Is it possible to import chrome functions, for example const {Cc,Ci,Cu} = require("chrome");?

0
source

All Articles