Merge pull request #1 from toumou/FIX-uploadLocation-when-window.location.port-is-empty

FIX uploadLocation when window.location.port is empty
This commit is contained in:
Thomas Ferracin 2016-11-24 18:02:12 +01:00 committed by GitHub
commit c39121eae0
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,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;
}
}