Skip to content

Commit

Permalink
Fix Fetch file index path
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Nov 12, 2024
1 parent 9d102de commit 3a1aad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class FetchFS extends IndexFS {
baseUrl += '/';
}

super(typeof index != 'string' ? index : fetchFile<IndexData>((baseUrl + index).replaceAll('//', '/'), 'json', requestInit));
super(typeof index != 'string' ? index : fetchFile<IndexData>(index, 'json', requestInit));

this.baseUrl = baseUrl;
this.requestInit = requestInit;
Expand Down

0 comments on commit 3a1aad9

Please sign in to comment.