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

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -