mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
add defaults and migrations
This commit is contained in:
@ -16,6 +16,7 @@ const defaultConfig = {
|
|||||||
autoResetAppCache: false,
|
autoResetAppCache: false,
|
||||||
resumeOnStart: true,
|
resumeOnStart: true,
|
||||||
proxy: "",
|
proxy: "",
|
||||||
|
startingPage: "Home",
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
// Enabled plugins
|
// Enabled plugins
|
||||||
|
|||||||
@ -10,6 +10,9 @@ const setDefaultPluginOptions = (store, plugin) => {
|
|||||||
|
|
||||||
const migrations = {
|
const migrations = {
|
||||||
">=1.20.0": (store) => {
|
">=1.20.0": (store) => {
|
||||||
|
// used only to make the radio button checked in the menu
|
||||||
|
store.set('options.startingPage', "Home");
|
||||||
|
|
||||||
setDefaultPluginOptions(store, "visualizer");
|
setDefaultPluginOptions(store, "visualizer");
|
||||||
|
|
||||||
if (store.get("plugins.notifications.toastStyle") === undefined) {
|
if (store.get("plugins.notifications.toastStyle") === undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user