Skip to content

Draft: Add ability to build safari extension

👋

Goal

Add ability to use extension in safari

Found problems

  1. 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)
  2. 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

  1. Move options page to popover (will use same localStorage)
  2. Use sendMessage API and "force" re-write the local storage (and re-render page)?
  3. Use chrome.storage API? (not tested if it works correctly between pages)

Any tips?

Edited by Martin Kluska

Merge request reports