1
0
Fork 0
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:
Cadence Ember 2020-09-01 01:40:34 +12:00
parent 3c99c040ee
commit 0b178fc7a0
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
2 changed files with 3 additions and 2 deletions

View file

@ -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
}