Merge pull request #4567 from toumou/master

FIX uploadLocation when window.location.port is empty
This commit is contained in:
Guo Xiang Tan 2016-12-01 07:19:24 +01:00 committed by GitHub
commit e0803e1f91
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ export function uploadLocation(url) {
} else {
var protocol = window.location.protocol + '//',
hostname = window.location.hostname,
port = ':' + window.location.port;
port = window.location.port ? ':' + window.location.port : '';
return protocol + hostname + port + url;
}
}