Skip to content

Commit

Permalink
Update anura-sw.js
Browse files Browse the repository at this point in the history
Quick fix for masqr
  • Loading branch information
ProgrammerIn-wonderland authored Feb 27, 2024
1 parent 17e178e commit 65efca0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/anura-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ workbox.routing.registerRoute(
if (url.pathname === "/") {
url.pathname = "/index.html";
}
if (url.password)
return new Response("<script>window.location.href = window.location.href</script>", {headers: {"content-type": "text/html"}});
const basepath = "/anura_files";
let sh = new fs.Shell();
// this is more annoying than it needs to be because this uses an old-ass compiler which doesn't like promises
Expand Down

0 comments on commit 65efca0

Please sign in to comment.