From 229d3d764e3b6d89bbb3dac7d4f808ff0093efa0 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Fri, 21 May 2021 13:03:07 +0200 Subject: [PATCH] Fixed settings check issues --- deemix/settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deemix/settings.js b/deemix/settings.js index c499b26..9224343 100644 --- a/deemix/settings.js +++ b/deemix/settings.js @@ -49,7 +49,7 @@ const DEFAULTS = { syncedLyrics: false, embeddedArtworkSize: 800, embeddedArtworkPNG: false, - localArtworkSize: 1400, + localArtworkSize: 1200, localArtworkFormat: "jpg", saveArtwork: true, coverImageTemplate: "cover", @@ -121,13 +121,13 @@ function load(configFolder){ function check(settings){ let changes = 0 Object.keys(DEFAULTS).forEach( _iSet => { - if (! settings[_iSet] || typeof settings[_iSet] != DEFAULTS[_iSet]){ + if (settings[_iSet] === undefined || typeof settings[_iSet] != typeof DEFAULTS[_iSet]){ settings[_iSet] = DEFAULTS[_iSet] changes++ } }) Object.keys(DEFAULTS.tags).forEach( _iSet => { - if (! settings.tags[_iSet] || typeof settings.tags[_iSet] != DEFAULTS.tags[_iSet]){ + if (settings.tags[_iSet] === undefined || typeof settings.tags[_iSet] != typeof DEFAULTS.tags[_iSet]){ settings.tags[_iSet] = DEFAULTS.tags[_iSet] changes++ }