summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-01-14 12:39:34 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-01-14 12:39:34 +0800
commit2c6135818f41d576e5ff41b3cf96536d9b85c79a (patch)
treed9ebae2b082a7790628f3c21ff8a95fc3b38f361 /public
parent4cf6dfb1dae4a41f539c5e5ae7a2ac83581b0a70 (diff)
mis spell catches -> caches
Diffstat (limited to 'public')
-rw-r--r--public/sw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/sw.js b/public/sw.js
index 61bac97c..de80a94d 100644
--- a/public/sw.js
+++ b/public/sw.js
@@ -19,7 +19,7 @@ self.addEventListener('install', event => {
})
self.addEventListener('fetch', event => {
- event.respondWith(catches.match(event.request)
+ event.respondWith(caches.match(event.request)
.then(cachedResponse => {
return cachedResponse || fetch(event.request);
})