mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
Merge branch 'master' into use-ToastXML
This commit is contained in:
@ -9,14 +9,15 @@ const setDefaultPluginOptions = (store, plugin) => {
|
||||
}
|
||||
|
||||
const migrations = {
|
||||
">1.19.0": (store) => {
|
||||
if (store.get("plugins.notifications.toastStyle") === undefined) {
|
||||
">=1.20.0": (store) => {
|
||||
setDefaultPluginOptions(store, "visualizer");
|
||||
|
||||
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