mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +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) {
|
||||
setOptions(plugin, { enabled: true });
|
||||
}
|
||||
@ -38,4 +42,5 @@ module.exports = {
|
||||
enable,
|
||||
disable,
|
||||
setOptions,
|
||||
getOptions,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user