Commit Graph

4 Commits

Author SHA1 Message Date
Pedro Celeste
9433f842d6 Code now reflects newer versions of browser.menus API (#523)
* Extension now is up-to-date with the Menus API

In the previous version of this extension, the author used a comment to
explain that the `browser.menus.onClicked.addListener` event listener
doesn't pass the current check state of a checkbox menu.

To solve this, an additional variable checkedState was used to keep
track of the current value of the context menu.

But now, this function is supported by the menus API in Firefox.

I changed the code to reflect how you would use it with the recent
versions, making it easier for new developers to learn this
functionality.

* Comment now reflects new function body
2023-04-21 14:14:58 +12:00
rebloor
82217a05bc Replace var with let in examples (#484)
* Replace var with let in examples

store-collected-images/webextension-plain/deps/uuidv4.js

* Reverted third–party code
2022-08-11 04:27:28 +12:00
wbamberg
29345544c9 Add some icons (#285) 2017-09-15 13:45:26 -07:00
wbamberg
179836d794 Update context-menu-demo (#272)
* Update context-menu-demo

* Some cleanup, and note from cross-browser compat
2017-09-08 16:07:36 -07:00