mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Interactive Notifications v2
This commit is contained in:
22
plugins/notifications/config.js
Normal file
22
plugins/notifications/config.js
Normal file
@ -0,0 +1,22 @@
|
||||
const { setOptions, setMenuOptions } = require("../../config/plugins");
|
||||
|
||||
let config;
|
||||
|
||||
module.exports.init = (options) => {
|
||||
config = options;
|
||||
}
|
||||
|
||||
module.exports.setAndMaybeRestart = (option, value) => {
|
||||
config[option] = value;
|
||||
setMenuOptions("notifications", config);
|
||||
}
|
||||
|
||||
module.exports.set = (option, value) => {
|
||||
config[option] = value;
|
||||
setOptions("notifications", config);
|
||||
}
|
||||
|
||||
module.exports.get = (option) => {
|
||||
let res = config[option];
|
||||
return res;
|
||||
}
|
||||
Reference in New Issue
Block a user