Draft: Add ability to build safari extension
Goal
Add ability to use extension in safari
Found problems
- localStorage is not synced between options page and popover page - hard safari reload is needed. Due this "bug" we are unable to port it. I've tried to use
browser.localStorage | global.localStorage
and nothing helped (it is same as window.localStorage) - Chrome sync the localStorage but popover ui is not refreshed (open options page and show the extension to try it). When popover is opened, the popover is freshly rendered. Safari caches the view.
I do not use vue, but it should not be so hard to add?
Possible solutions
- Move options page to popover (will use same localStorage)
- Use sendMessage API and "force" re-write the local storage (and re-render page)?
- Use chrome.storage API? (not tested if it works correctly between pages)
Any tips?
Edited by Martin Kluska