mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Add getOptions in plugin util
This commit is contained in:
@ -24,6 +24,10 @@ function setOptions(plugin, options) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getOptions(plugin) {
|
||||||
|
return store.get("plugins")[plugin];
|
||||||
|
}
|
||||||
|
|
||||||
function enable(plugin) {
|
function enable(plugin) {
|
||||||
setOptions(plugin, { enabled: true });
|
setOptions(plugin, { enabled: true });
|
||||||
}
|
}
|
||||||
@ -38,4 +42,5 @@ module.exports = {
|
|||||||
enable,
|
enable,
|
||||||
disable,
|
disable,
|
||||||
setOptions,
|
setOptions,
|
||||||
|
getOptions,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user