mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-05-26 12:32:25 +00:00
Fix default setting merge
This commit is contained in:
parent
3c99c040ee
commit
0b178fc7a0
2 changed files with 3 additions and 2 deletions
|
|
@ -33,8 +33,8 @@ class User {
|
|||
|
||||
getSettingsOrDefaults() {
|
||||
const settings = this.getSettings()
|
||||
for (const key of Object.keys(settings)) {
|
||||
if (settings[key] === null) settings[key] = constants.user_settings[key].default
|
||||
for (const key of Object.keys(constants.user_settings)) {
|
||||
if (settings[key] == null) settings[key] = constants.user_settings[key].default
|
||||
}
|
||||
return settings
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue