Skip to content

Commit b24becb

Browse files
update pwa name
1 parent 5b9f652 commit b24becb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

assets/sw.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
var cacheName = 'egui-template-pwa';
1+
var cacheName = "particle-simulation-pwa";
22
var filesToCache = [
3-
'./',
4-
'./index.html',
5-
'./particle-simulation.js',
6-
'./particle-simulation_bg.wasm',
3+
"./",
4+
"./index.html",
5+
"./particle-simulation.js",
6+
"./particle-simulation_bg.wasm",
77
];
88

99
/* Start the service worker and cache all of the app's content */
10-
self.addEventListener('install', function (e) {
10+
self.addEventListener("install", function (e) {
1111
e.waitUntil(
1212
caches.open(cacheName).then(function (cache) {
1313
return cache.addAll(filesToCache);
14-
})
14+
}),
1515
);
1616
});
1717

1818
/* Serve cached content when offline */
19-
self.addEventListener('fetch', function (e) {
19+
self.addEventListener("fetch", function (e) {
2020
e.respondWith(
2121
caches.match(e.request).then(function (response) {
2222
return response || fetch(e.request);
23-
})
23+
}),
2424
);
2525
});

0 commit comments

Comments
 (0)