mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
fix(store): fix listenAlong statement
This commit is contained in:
@ -21,8 +21,9 @@ const setDefaultPluginOptions = (store: Conf<Record<string, unknown>>, plugin: k
|
||||
|
||||
const migrations = {
|
||||
'>=2.1.3'(store: Conf<Record<string, unknown>>) {
|
||||
if (store.get('plugins.discord.listenAlong')) {
|
||||
store.set('plugins.discord.playOnYouTubeMusic', true);
|
||||
const listenAlong = store.get('plugins.discord.listenAlong');
|
||||
if (listenAlong !== undefined) {
|
||||
store.set('plugins.discord.playOnYouTubeMusic', listenAlong);
|
||||
store.delete('plugins.discord.listenAlong');
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user