[Plugins] Allow not exporting anything
This commit is contained in:
parent
fd741ded5d
commit
3448a3b2cb
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export async function evalPlugin(plugin: Plugin) {
|
||||||
|
|
||||||
const raw = (0, eval)(pluginString)(vendettaForPlugins);
|
const raw = (0, eval)(pluginString)(vendettaForPlugins);
|
||||||
const ret = typeof raw == "function" ? raw() : raw;
|
const ret = typeof raw == "function" ? raw() : raw;
|
||||||
return ret?.default || ret;
|
return ret?.default ?? ret ?? {};
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function startPlugin(id: string) {
|
export async function startPlugin(id: string) {
|
||||||
|
|
Loading…
Reference in a new issue