mirror of
https://github.com/smartyellow/status.git
synced 2025-01-18 13:37:59 +00:00
Stringify dashboard settings
This commit is contained in:
parent
dbe3648545
commit
ba0687af94
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user