Skip to content

Commit

Permalink
Fix addons not loading local path correctly (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwlok authored Jan 23, 2025
1 parent 1aa7229 commit d060989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/addons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Addons<T extends Addon> extends Base<T> {
// 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);
Expand Down

0 comments on commit d060989

Please sign in to comment.