fix: host ~> hostname

This commit is contained in:
Pooya Parsa 2020-11-04 02:15:42 +01:00
parent fac79cb091
commit bec1c8edfa
1 changed files with 1 additions and 1 deletions

View File

@ -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()