Merge pull request #4567 from toumou/master
FIX uploadLocation when window.location.port is empty
This commit is contained in:
commit
e0803e1f91
|
@ -234,7 +234,7 @@ export function uploadLocation(url) {
|
||||||
} else {
|
} else {
|
||||||
var protocol = window.location.protocol + '//',
|
var protocol = window.location.protocol + '//',
|
||||||
hostname = window.location.hostname,
|
hostname = window.location.hostname,
|
||||||
port = ':' + window.location.port;
|
port = window.location.port ? ':' + window.location.port : '';
|
||||||
return protocol + hostname + port + url;
|
return protocol + hostname + port + url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue