Skip to content

Commit

Permalink
fix: host ~> hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 4, 2020
1 parent 8d50892 commit 7c663c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/targets/sw/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
})
}

if (location.host !== 'localhost' && location.protocol === 'http:') {
if (location.hostname !== 'localhost' && location.protocol === 'http:') {
location.replace(location.href.replace('http://', 'https://'))
} else {
register()
Expand Down

0 comments on commit 7c663c2

Please sign in to comment.