hiding a console-error

This commit is contained in:
Kasper Rynning-Tønnesen
2020-02-21 14:48:00 +01:00
parent edf29b57f5
commit 8adaac8066

View File

@@ -68,6 +68,12 @@ self.addEventListener("fetch", event => {
event.respondWith(fetch(event.request));
return;
}
if (
event.request.cache === "only-if-cached" &&
event.request.mode !== "same-origin"
)
return;
if (event.request.url.includes("/api/")) {
event.respondWith(
fetch(event.request)