Tutorials of "Implement a settings page" should use synced storage

NEW
Unassigned

Status

Developer Documentation
Add-ons
11 days ago
11 days ago

People

(Reporter: xidorn, Unassigned)

Tracking

Details

The example in "Implement a settings page" is currently using code:
> function saveOptions(e) {
>   e.preventDefault();
>   browser.storage.local.set({
>     color: document.querySelector("#color").value
>   });
> }

However, I believe developers and users generally want to sync the options of addons across different devices, so I think this example code should really use storage.sync by default, and explain that developers can also use storage.local if they think some options are better kept locally in a note after.

(I'm not sure whether this matches the teams' thought, so I file a bug instead of editing the page directly.)
You need to log in before you can comment on or make changes to this bug.