File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1- var cacheName = 'egui-template -pwa' ;
1+ var cacheName = "particle-simulation -pwa" ;
22var 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} ) ;
You can’t perform that action at this time.
0 commit comments