diff --git a/src/service-worker-registration.js b/src/service-worker-registration.js index ef2231b..b348940 100644 --- a/src/service-worker-registration.js +++ b/src/service-worker-registration.js @@ -18,9 +18,9 @@ if ( 'serviceWorker' in navigator && + location.protocol === 'https:' && document.cookie.indexOf('wmdebug') === -1 && location.href.indexOf('chrome-extension://') === -1 && - location.href.indexOf('localhost') === -1 && location.href.indexOf('192.168') === -1 ) { // Delay registration until after the page has loaded, to ensure that our