add different modes to video-toggle plugin

* Custom: like before but slightly position

* Native: use the native video-toggle

* Disabled: force disable the native video-toggle
This commit is contained in:
Araxeus
2022-04-20 18:21:51 +03:00
parent 23058729f3
commit 9beebd3772
6 changed files with 66 additions and 7 deletions

View File

@ -3,6 +3,11 @@ const Store = require("electron-store");
const defaults = require("./defaults");
const migrations = {
">=1.17.0": (store) => {
if (store.get("plugins.video-toggle.mode") === undefined) {
store.set("plugins.video-toggle.mode", "custom");
}
},
">=1.14.0": (store) => {
if (
typeof store.get("plugins.precise-volume.globalShortcuts") !== "object"