[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:
committed by
Lyubo Marinov
parent
4979666a89
commit
b226c3aca3
@@ -126,7 +126,7 @@ function _getRoomAndDomainFromURLObject(url) {
|
||||
let room;
|
||||
|
||||
if (url) {
|
||||
domain = url.hostname;
|
||||
domain = url.host;
|
||||
|
||||
// The room (name) is the last component of pathname.
|
||||
room = url.pathname;
|
||||
|
||||
Reference in New Issue
Block a user