Skip to content

Commit 926b9fb

Browse files
committed
feat: add migration script
1 parent a6c9b33 commit 926b9fb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config/store.ts

+10
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ const setDefaultPluginOptions = (store: Conf<Record<string, unknown>>, plugin: k
1010
};
1111

1212
const migrations = {
13+
'>=2.0.3'(store: Conf<Record<string, unknown>>) {
14+
if (store.get('plugins.discord.hideGitHubButton') === undefined) {
15+
store.set('plugins.discord.hideGitHubButton', false);
16+
}
17+
},
18+
'>=2.0.0'(store: Conf<Record<string, unknown>>) {
19+
if (store.get('plugins.disable-autoplay.applyOnce') === undefined) {
20+
store.set('plugins.disable-autoplay.applyOnce', false);
21+
}
22+
},
1323
'>=1.20.0'(store: Conf<Record<string, unknown>>) {
1424
setDefaultPluginOptions(store, 'visualizer');
1525

0 commit comments

Comments
 (0)