mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 08:49:20 +00:00
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 {
|
||||
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…
x
Reference in New Issue
Block a user