Skip to content

Commit

Permalink
relative again
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Oct 18, 2024
1 parent f7b7d93 commit 1348ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function filepathToMimeType(filepath) {
}

const updateFileCache = async (filepath, content) => {
const request = new URL(`.${filepath}`, location.origin);
const request = new URL(`.${filepath}`, location.href);

if (content == null) {
await cache.delete(request);
Expand Down

0 comments on commit 1348ef8

Please sign in to comment.