max-kamps / jpd-breader

MIT License
102 stars 28 forks source link

Make settings page access localstorage directly #30

Closed max-kamps closed 1 year ago

max-kamps commented 1 year ago

Currently, the settings page transmits any settings changes to the background page. The background page is then responsible for saving them.

I recently realized that this is unnecessary - the settings page can access the local storage directly, since it has the same domain as the background page.

This change should simplify settings.ts and background.ts a lot.