mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
add migrations
This commit is contained in:
@ -9,6 +9,15 @@ const setDefaultPluginOptions = (store, plugin) => {
|
||||
}
|
||||
|
||||
const migrations = {
|
||||
">1.19.0": (store) => {
|
||||
if (store.get("plugins.notifications.toastStyle") === undefined) {
|
||||
const pluginOptions = store.get("plugins.notifications") || {};
|
||||
store.set("plugins.notifications", {
|
||||
...defaults.plugins.notifications,
|
||||
...pluginOptions,
|
||||
});
|
||||
}
|
||||
},
|
||||
">=1.17.0": (store) => {
|
||||
setDefaultPluginOptions(store, "picture-in-picture");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user