I am trying to use my Chrome extension on Microsoft Edge to adapt it, but I can't build the popup because in the script of my popup, some variables seem to not exist:
var bg = chrome.extension.getBackgroundPage();
This line isn't working, it supposed to access data of content scripts. I've found some guys saying browser.extension.getBackgroundPage() must be used to replace it, but it doesn't work to.
By what should I replace this line?
chrome = browser
already? This API is currently documented as being supported in Microsoft Edge. – Sampson