mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +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://'))
|
location.replace(location.href.replace('http://', 'https://'))
|
||||||
} else {
|
} else {
|
||||||
register()
|
register()
|
||||||
|
Loading…
Reference in New Issue
Block a user