mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-14 20:01:47 +00:00
Add migration for precise-volume plugin (globalShortcuts key)
This commit is contained in:
@ -3,6 +3,13 @@ const Store = require("electron-store");
|
|||||||
const defaults = require("./defaults");
|
const defaults = require("./defaults");
|
||||||
|
|
||||||
const migrations = {
|
const migrations = {
|
||||||
|
">=1.14.0": (store) => {
|
||||||
|
if (
|
||||||
|
typeof store.get("plugins.precise-volume.globalShortcuts") !== "object"
|
||||||
|
) {
|
||||||
|
store.set("plugins.precise-volume.globalShortcuts", {});
|
||||||
|
}
|
||||||
|
},
|
||||||
">=1.13.0": (store) => {
|
">=1.13.0": (store) => {
|
||||||
if (store.get("plugins.discord.listenAlong") === undefined) {
|
if (store.get("plugins.discord.listenAlong") === undefined) {
|
||||||
store.set("plugins.discord.listenAlong", true);
|
store.set("plugins.discord.listenAlong", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user