mozilla / fx-private-relay-add-on

Companion add-on for Firefox Relay. Keep your email safe from hackers and trackers. Make an email alias with one click, and keep your address to yourself.
https://addons.mozilla.org/en-US/firefox/addon/private-relay
Mozilla Public License 2.0
67 stars 14 forks source link

Consolidate local storage keys on setup #538

Open maxxcrawford opened 9 months ago

maxxcrawford commented 9 months ago
          Ignorant Q: But do these have to be set separately, or can we set one object w/ multiple keys?

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage/StorageArea/set implies we can almost condense these four set() calls into a single call w/ object w/ 4 keys. 🤷

_Originally posted by @pdehaan in https://github.com/mozilla/fx-private-relay-add-on/pull/530#discussion_r1351137221_