[RN] Fix loading config.js from URLs with a non-standard port
`host` contains the hostname:port portion, whereas `hostname` is just the hostname, not including the port.
This commit is contained in:
parent
4979666a89
commit
b226c3aca3
|
@ -126,7 +126,7 @@ function _getRoomAndDomainFromURLObject(url) {
|
||||||
let room;
|
let room;
|
||||||
|
|
||||||
if (url) {
|
if (url) {
|
||||||
domain = url.hostname;
|
domain = url.host;
|
||||||
|
|
||||||
// The room (name) is the last component of pathname.
|
// The room (name) is the last component of pathname.
|
||||||
room = url.pathname;
|
room = url.pathname;
|
||||||
|
|
Loading…
Reference in New Issue