fix: host ~> hostname

This commit is contained in:
Pooya Parsa 2020-11-04 02:15:42 +01:00
parent fac79cb091
commit bec1c8edfa

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://')) location.replace(location.href.replace('http://', 'https://'))
} else { } else {
register() register()