diff --git a/src/main/resources/web/sw.js b/src/main/resources/web/sw.js index 5b2edc0..95d4993 100644 --- a/src/main/resources/web/sw.js +++ b/src/main/resources/web/sw.js @@ -23,7 +23,7 @@ self.addEventListener("fetch", evt => { addEventListener("message", e => { if (e.data.action == "cache") { - event.waitUntil(cache(e.data.urls)); + e.waitUntil(cache(e.data.urls)); } });