mirror of https://github.com/nuxt/nuxt.git
fix: host ~> hostname
This commit is contained in:
parent
fac79cb091
commit
bec1c8edfa
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue