File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed
Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1515
1616 {{ content }}
1717
18- < script >
19- if ( 'serviceWorker' in navigator ) {
20- window . addEventListener ( 'load' , function ( ) {
21- navigator . serviceWorker . register ( '/sw.js?0159' ) . then ( function ( registration ) {
22- // Successfully registered the Service Worker
23- //console.log('Service Worker registration successful with scope: ', registration.scope);
24- } ) . catch ( function ( err ) {
25- // Failed to register the Service Worker
26- //console.log('Service Worker registration failed: ', err);
27- } ) ;
28- } ) ;
29- }
30- </ script >
31-
3218 < script >
3319 performance . measure ( 'contentTime' , 'contentStart' , 'contentEnd' ) ;
3420 </ script >
8672 LUX . addData ( 'rtt' , rtt ) ;
8773 } ) ( ) ;
8874 </ script >
75+
76+ < script >
77+ if ( 'serviceWorker' in navigator ) {
78+ window . addEventListener ( 'load' , function ( ) {
79+ navigator . serviceWorker . register ( '/sw.js?0161' ) . then ( function ( registration ) {
80+ // Successfully registered the Service Worker
81+ //console.log('Service Worker registration successful with scope: ', registration.scope);
82+ } ) . catch ( function ( err ) {
83+ // Failed to register the Service Worker
84+ //console.log('Service Worker registration failed: ', err);
85+ } ) ;
86+ } ) ;
87+ }
88+ </ script >
Original file line number Diff line number Diff line change 1- var cacheName = 'csswizardry:0159 ' ;
1+ var cacheName = 'csswizardry:0161 ' ;
22var cacheFiles = [
33 '/' ,
44 '/about/' ,
@@ -63,7 +63,7 @@ self.addEventListener('fetch', function(event) {
6363// Empty out any caches that don’t match the ones listed.
6464self . addEventListener ( 'activate' , function ( event ) {
6565
66- var cacheWhitelist = [ 'csswizardry:0159 ' ] ;
66+ var cacheWhitelist = [ 'csswizardry:0161 ' ] ;
6767
6868 event . waitUntil (
6969 caches . keys ( ) . then ( function ( cacheNames ) {
You can’t perform that action at this time.
0 commit comments