|
|
@ -51,7 +51,7 @@ async function init() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function add(iife: string) {
|
|
|
|
function add(iife: string, customMeta: UnknownObject = {}) {
|
|
|
|
const exports = pluginEval(iife);
|
|
|
|
const exports = pluginEval(iife);
|
|
|
|
logger.debug(["Plugins"], `Adding ${exports.meta.name}`);
|
|
|
|
logger.debug(["Plugins"], `Adding ${exports.meta.name}`);
|
|
|
|
pluginNest.store.plugins[exports.meta.name] = {
|
|
|
|
pluginNest.store.plugins[exports.meta.name] = {
|
|
|
@ -59,6 +59,7 @@ function add(iife: string) {
|
|
|
|
enabled: false,
|
|
|
|
enabled: false,
|
|
|
|
desc: exports.meta.desc
|
|
|
|
desc: exports.meta.desc
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
Object.assign(pluginNest.store.plugins[exports.meta.name], customMeta)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function del(name: string) {
|
|
|
|
function del(name: string) {
|
|
|
|