Skip to content

Commit

Permalink
Remove registration.update() (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick authored and addyosmani committed Jun 2, 2016
1 parent 20eb478 commit 591ceb4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
(window.location.protocol === 'https:' || isLocalhost)) {
navigator.serviceWorker.register('service-worker.js')
.then(function(registration) {
// Check to see if there's an updated version of service-worker.js with
// new files to cache:
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-registration-update-method
if (typeof registration.update === 'function') {
registration.update();
}

// updatefound is fired if service-worker.js changes.
registration.onupdatefound = function() {
// updatefound is also fired the very first time the SW is installed,
Expand Down

0 comments on commit 591ceb4

Please sign in to comment.