mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/lib/settings: use default settings as base when loading from storage
This commit is contained in:
parent
bc63b0c6b7
commit
2b907e5684
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@ const loadFromStorage = () => {
|
|||
return defaultSettings;
|
||||
}
|
||||
|
||||
return JSON.parse(settings) as CobaltSettings;
|
||||
return {
|
||||
...defaultSettings,
|
||||
...JSON.parse(settings) as CobaltSettings
|
||||
}
|
||||
}
|
||||
|
||||
let update: (_: Updater<CobaltSettings>) => void;
|
||||
|
|
Loading…
Reference in a new issue