diff --git a/src/index.ts b/src/index.ts index d7a0135..0da123e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,6 @@ import { initFetchI18nStrings } from "@core/i18n"; import { initCorePlugins } from "@core/plugins"; import initSettings from "@core/ui/settings"; import { initVendettaObject } from "@core/vendettaObject"; -import { patchAssets } from "@lib/api/assets"; import { patchCommands } from "@lib/api/commands"; import { injectFluxInterceptor } from "@lib/api/flux"; import { removeFile, writeFile } from "@lib/api/native/fs"; @@ -41,7 +40,6 @@ export default async () => { injectFluxInterceptor(), patchSettings(), patchLogHook(), - patchAssets(), patchCommands(), patchChatBackground(), initVendettaObject(), diff --git a/src/lib/managers/plugins.ts b/src/lib/managers/plugins.ts index b4e61e2..9fb85d0 100644 --- a/src/lib/managers/plugins.ts +++ b/src/lib/managers/plugins.ts @@ -97,7 +97,7 @@ export async function evalPlugin(plugin: BunnyPlugin) { }, logger: new logModule(`Bunny ยป ${plugin.manifest.name}`), }; - const pluginString = `vendetta=>{return ${plugin.js}}\n//# sourceURL=${plugin.id}`; + const pluginString = `vendetta=>{return ${plugin.js}}\n//# sourceURL=${plugin.id}?hash=${plugin.manifest.hash}`; const raw = (0, eval)(pluginString)(vendettaForPlugins); const ret = typeof raw === "function" ? raw() : raw;