mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
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
Block a user