diff --git a/packages/pwa/dom.js b/packages/pwa/dom.js index 39cfb3b0e..854fbc3e1 100644 --- a/packages/pwa/dom.js +++ b/packages/pwa/dom.js @@ -11,7 +11,7 @@ module.exports = function installServiceWorker() { } if ( - window.location.protocol === 'https' || + window.location.protocol === 'https:' || window.location.hostname === 'localhost' ) { window.addEventListener('load', function() {