fix config overwrite on each start

This commit is contained in:
Araxeus
2021-05-09 22:10:20 +03:00
parent a3778af48a
commit 792c2931b0

View File

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