firefox addon - Options page not showing -
i'm writing new add-on web extension. in package.manifest, have options_ui set:
"options_ui": { "page": "options.html" }
but in about:addons, options button not present.
so tried call page directly background script:
runtime.openoptionspage();
but error: message: referenceerror: runtime not defined
same error type with:
chrome.runtime.openoptionspage(); message: referenceerror: chrome not defined
i'm missing obvious there. tested firefox esr 45.0.4 , latest firefox dev edition (51.0a2). how can options page show in about:addons , how can call background script?
it's browser.runtime.blah
or chrome.runtime.blah
.
i'm not sure if esr 45 supports it.
this code should go in background script right?
please post more of code can update answer.
Comments
Post a Comment