[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 17:14:04 -06:00
committed by Lyubo Marinov
parent 4979666a89
commit b226c3aca3
+1 -1
View File
@@ -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;