Merge pull request #267 from Araxeus/last-fm-config-check-fix

fix last-fm overwrite config on each start
This commit is contained in:
th-ch
2021-05-09 21:47:07 +02:00
committed by GitHub

View File

@ -131,7 +131,7 @@ let scrobbleTimer = undefined;
const lastfm = async (win, config) => { const lastfm = async (win, config) => {
const registerCallback = getSongInfo(win); const registerCallback = getSongInfo(win);
if (!config.api_root || !config.suffixesToRemove) { if (!config.api_root) {
// settings are not present, creating them with the default values // settings are not present, creating them with the default values
config = defaultConfig.plugins['last-fm']; config = defaultConfig.plugins['last-fm'];
config.enabled = true; config.enabled = true;