Reputation: 643
How do I add the options menu on right-clicking the icon of a Google Chrome extension?
I have made a file named options.html
; now how do i link it up so it works? I thought it would be automatic.
Upvotes: 2
Views: 5548
Reputation: 57651
Google Chrome populates the right-click menu automatically, so to have an Options item there your extension needs to actually provide an options page. As you've figured out already, designating options.html
as your options page is done by adding the following line to manifest.json
:
"options_page": "options.html",
See documentation of this feature.
Upvotes: 3