[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:
Saúl Ibarra Corretgé 2017-02-23 11:23:28 +01:00 committed by Lyubo Marinov
parent 4979666a89
commit b226c3aca3
1 changed files with 1 additions and 1 deletions

View File

@ -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;