Skip to content

Commit c89fb8a

Browse files
committed
i hate js
1 parent a9aacef commit c89fb8a

File tree

1 file changed

+4
-1
lines changed
  • source/_extensions/pwa_service_files

1 file changed

+4
-1
lines changed

source/_extensions/pwa_service_files/sw.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ self.addEventListener('install', function(e) {
66
e.waitUntil(
77
caches.open('frc-docs').then(function(cache) {
88
fetch('_static/cache.json')
9-
.then(response => response.json().then(data => cache.addAll(data), console.log(cache.keys())))
9+
.then(response => response.json().then(data => {
10+
cache.addAll(data);
11+
console.log(cache.keys());
12+
}))
1013
.catch(error => {
1114
console.error(error);
1215
});

0 commit comments

Comments
 (0)