Skip to content

Commit

Permalink
oops, fixed hardcoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammerIn-wonderland committed Dec 19, 2023
1 parent 93ac193 commit 9480c36
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions public/anura-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ workbox.routing.registerRoute(/\/extension\//, async ({ url }) => {
try {
return new Response(
await fs.promises.readFile(
"/" +
"/extension/boojdlpfddgdceanfgoljlcapmnplfac/icon128.png"
.split("/")
.slice(2)
.join("/"),
"/" + url.pathname.split("/").slice(2).join("/"),
),
);
} catch (e) {
Expand Down

0 comments on commit 9480c36

Please sign in to comment.