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:
commit
c39121eae0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue