diff --git a/src/def.d.ts b/src/def.d.ts index ce63dd2..23d34a5 100644 --- a/src/def.d.ts +++ b/src/def.d.ts @@ -373,6 +373,7 @@ interface VendettaObject { } interface VendettaPluginObject { + id: string; manifest: PluginManifest; storage: Indexable; } diff --git a/src/lib/plugins.ts b/src/lib/plugins.ts index c1c16a1..34bd337 100644 --- a/src/lib/plugins.ts +++ b/src/lib/plugins.ts @@ -55,6 +55,7 @@ export async function evalPlugin(plugin: Plugin) { const vendettaForPlugins = { ...window.vendetta, plugin: { + id: plugin.id, manifest: plugin.manifest, // Wrapping this with wrapSync is NOT an option. storage: await createStorage>(createMMKVBackend(plugin.id)),