Skip to content

Commit

Permalink
fix: check against correct protocol notion for sw registration
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-drexler authored and dmbch committed Feb 20, 2018
1 parent 23a8ace commit 9f006a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pwa/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 9f006a3

Please sign in to comment.