mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 11:51:47 +00:00
Merge pull request #267 from Araxeus/last-fm-config-check-fix
fix last-fm overwrite config on each start
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user