From 591ceb4c07be650efbc14af322c1a3cdf3fa3684 Mon Sep 17 00:00:00 2001 From: Jeffrey Posnick Date: Thu, 2 Jun 2016 16:46:40 -0400 Subject: [PATCH] Remove registration.update() (#866) --- app/scripts/main.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/scripts/main.js b/app/scripts/main.js index 639f802e1..fb2c92894 100644 --- a/app/scripts/main.js +++ b/app/scripts/main.js @@ -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,