Skip to content

Commit 9fce941

Browse files
committed
Temporarily disable service worker
1 parent 6c77f03 commit 9fce941

File tree

6 files changed

+57
-37
lines changed

6 files changed

+57
-37
lines changed

docs/bundle.js

Lines changed: 34 additions & 34 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@
2626
<script src="bundle.js"></script>
2727
<script>
2828
if ('serviceWorker' in navigator) {
29+
30+
// remove old service worker registrations
31+
navigator.serviceWorker.getRegistrations()
32+
.then(registrations => {
33+
for (let registration of registrations)
34+
registration.unregister()
35+
})
36+
37+
/*
2938
window.addEventListener('load', () => {
3039
// If we are using Github Pages instead of `https://angular.hamburg`,
3140
// the SW is found under a different path and has a different scope
@@ -37,6 +46,7 @@
3746
})
3847
.catch(e => DEV_ENV ? console.error('Failed to register:', e) : 0)
3948
})
49+
*/
4050
}
4151
</script>
4252
</body>

docs/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ try {
2828
logError('Failed to import:', e)
2929
}
3030

31-
const VERSION = '0.6.5'
31+
const VERSION = '0.7.0'
3232
const PREFETCH_CACHE = `ng-hh-prefetch-cache-v${VERSION}`
3333
const RUNTIME_CACHE = `ng-hh-runtime-cache-v${VERSION}`
3434

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular.hamburg",
3-
"version": "0.6.5",
3+
"version": "0.7.0",
44
"description": "The angular.hamburg website for Hamburg's Angular Meetup, jokingly made with React.",
55
"main": "index.js",
66
"scripts": {

src/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@
2626
<script src="bundle.js"></script>
2727
<script>
2828
if ('serviceWorker' in navigator) {
29+
30+
// remove old service worker registrations
31+
navigator.serviceWorker.getRegistrations()
32+
.then(registrations => {
33+
for (let registration of registrations)
34+
registration.unregister()
35+
})
36+
37+
/*
2938
window.addEventListener('load', () => {
3039
// If we are using Github Pages instead of `https://angular.hamburg`,
3140
// the SW is found under a different path and has a different scope
@@ -37,6 +46,7 @@
3746
})
3847
.catch(e => DEV_ENV ? console.error('Failed to register:', e) : 0)
3948
})
49+
*/
4050
}
4151
</script>
4252
</body>

src/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ try {
2828
logError('Failed to import:', e)
2929
}
3030

31-
const VERSION = '0.6.5'
31+
const VERSION = '0.7.0'
3232
const PREFETCH_CACHE = `ng-hh-prefetch-cache-v${VERSION}`
3333
const RUNTIME_CACHE = `ng-hh-runtime-cache-v${VERSION}`
3434

0 commit comments

Comments
 (0)