Skip to content

Commit 5e5b795

Browse files
committed
Aaaa
1 parent c89fb8a commit 5e5b795

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

source/_extensions/pwa_service_files/sw.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ self.addEventListener('install', function(e) {
77
caches.open('frc-docs').then(function(cache) {
88
fetch('_static/cache.json')
99
.then(response => response.json().then(data => {
10-
cache.addAll(data);
10+
/*for (const i of data) {
11+
cache.addAll()
12+
}*/
13+
cache.addAll(data).catch(error => {
14+
console.error(error)
15+
})
1116
console.log(cache.keys());
1217
}))
1318
.catch(error => {

0 commit comments

Comments
 (0)