mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
feat: add migration script
This commit is contained in:
@ -10,6 +10,16 @@ const setDefaultPluginOptions = (store: Conf<Record<string, unknown>>, plugin: k
|
||||
};
|
||||
|
||||
const migrations = {
|
||||
'>=2.0.3'(store: Conf<Record<string, unknown>>) {
|
||||
if (store.get('plugins.discord.hideGitHubButton') === undefined) {
|
||||
store.set('plugins.discord.hideGitHubButton', false);
|
||||
}
|
||||
},
|
||||
'>=2.0.0'(store: Conf<Record<string, unknown>>) {
|
||||
if (store.get('plugins.disable-autoplay.applyOnce') === undefined) {
|
||||
store.set('plugins.disable-autoplay.applyOnce', false);
|
||||
}
|
||||
},
|
||||
'>=1.20.0'(store: Conf<Record<string, unknown>>) {
|
||||
setDefaultPluginOptions(store, 'visualizer');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user