Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit 591ceb4

Browse files
jeffposnickaddyosmani
authored andcommitted
Remove registration.update() (#866)
1 parent 20eb478 commit 591ceb4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/scripts/main.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@
3737
(window.location.protocol === 'https:' || isLocalhost)) {
3838
navigator.serviceWorker.register('service-worker.js')
3939
.then(function(registration) {
40-
// Check to see if there's an updated version of service-worker.js with
41-
// new files to cache:
42-
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-registration-update-method
43-
if (typeof registration.update === 'function') {
44-
registration.update();
45-
}
46-
4740
// updatefound is fired if service-worker.js changes.
4841
registration.onupdatefound = function() {
4942
// updatefound is also fired the very first time the SW is installed,

0 commit comments

Comments
 (0)