add defaults and migrations

This commit is contained in:
Araxeus
2023-03-15 23:27:36 +02:00
parent a3ea37d412
commit f5758bfe93
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ const defaultConfig = {
autoResetAppCache: false,
resumeOnStart: true,
proxy: "",
startingPage: "Home",
},
plugins: {
// Enabled plugins

View File

@ -10,6 +10,9 @@ const setDefaultPluginOptions = (store, plugin) => {
const migrations = {
">=1.20.0": (store) => {
// used only to make the radio button checked in the menu
store.set('options.startingPage', "Home");
setDefaultPluginOptions(store, "visualizer");
if (store.get("plugins.notifications.toastStyle") === undefined) {