nileshtrivedi / better

Browser extension that suggests better/ethical/local/cheaper alternative products & services than your current tab's URL.
MIT License
89 stars 6 forks source link

Add extension id to make storage API work on Firefox in dev. #18

Closed anirudhvarma12 closed 4 years ago

anirudhvarma12 commented 4 years ago

Adds a static GUID to run the extension in dev mode in Firefox. Firefox requires extensions to have a (non-temporary) id to access storage.sync APIs. See -

This change, however, makes Chromium-based browsers unhappy, as they do not recognize browser_specific_settings. The extension still works (tested in both chrome and brave), but shows errors in dev mode.

Closes #5

anirudhvarma12 commented 4 years ago

According to this StackOverflow link, there is no way to make Chrome not complain about this key.