Skip to content

Commit 08e6fbf

Browse files
committed
Bump
1 parent e4f6ae6 commit 08e6fbf

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

_layouts/default.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,6 @@
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>
@@ -86,3 +72,17 @@
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>

sw.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var cacheName = 'csswizardry:0159';
1+
var cacheName = 'csswizardry:0161';
22
var 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.
6464
self.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) {

0 commit comments

Comments
 (0)