From 3448a3b2cbbea8d0e65ddcf7c5b3345e4ea2fcda Mon Sep 17 00:00:00 2001 From: Beef Date: Sun, 16 Apr 2023 14:02:22 +0100 Subject: [PATCH] [Plugins] Allow not exporting anything --- src/lib/plugins.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/plugins.ts b/src/lib/plugins.ts index 3749e55..3891363 100644 --- a/src/lib/plugins.ts +++ b/src/lib/plugins.ts @@ -68,7 +68,7 @@ export async function evalPlugin(plugin: Plugin) { const raw = (0, eval)(pluginString)(vendettaForPlugins); const ret = typeof raw == "function" ? raw() : raw; - return ret?.default || ret; + return ret?.default ?? ret ?? {}; } export async function startPlugin(id: string) {