diff --git a/priv/static/js/service-worker.js b/priv/static/js/service-worker.js index f7dcf96..251ad66 100644 --- a/priv/static/js/service-worker.js +++ b/priv/static/js/service-worker.js @@ -60,7 +60,8 @@ self.addEventListener("activate", (e) => { }); self.addEventListener("fetch", (event) => { - if (event.request.url.pathname.startsWith("/api")) { + const url = new URL(event.request.url); + if (url.pathname.startsWith("/api")) { return; }