From d0609895c6d7aefd8ed62bf9ea33121f35515bc2 Mon Sep 17 00:00:00 2001 From: Bwlok <65543013+bwlok@users.noreply.github.com> Date: Thu, 23 Jan 2025 21:03:22 +0100 Subject: [PATCH] Fix addons not loading local path correctly (#3) --- src/managers/addons.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/addons.ts b/src/managers/addons.ts index 7ea456a..acbfe7a 100644 --- a/src/managers/addons.ts +++ b/src/managers/addons.ts @@ -129,7 +129,7 @@ class Addons extends Base { // Replace manifest.json at the end of the URL with the relative bundle file const origin = url.split('/'); origin.pop(); - const main = new URL(manifest.main, origin.join('/')); + const main = new URL(manifest.main, origin.join('/') + '/'); const bundleRequest = await fetch(main, { cache: 'no-cache', signal: createTimeoutSignal() }).catch((error) => { this.logger.error('Failed to fetch bundle URL:', error.message);