Stringify dashboard settings

This commit is contained in:
Romein van Buren 2022-07-13 12:06:48 +02:00
parent dbe3648545
commit ba0687af94
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -12,10 +12,10 @@ function createSettingsStore() {
const s = writable(defaults); const s = writable(defaults);
function updateStorage(val) { function updateStorage(val) {
window.localStorage.setItem('statusdash', { window.localStorage.setItem('statusdash', JSON.stringify({
...defaults, ...defaults,
...JSON.stringify(val), ...JSON.stringify(val),
}); }));
s.set(val); s.set(val);
} }