Parcourir la source

[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.
j8
Saúl Ibarra Corretgé il y a 8 ans
Parent
révision
b226c3aca3
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      react/features/app/functions.native.js

+ 1
- 1
react/features/app/functions.native.js Voir le fichier

@@ -126,7 +126,7 @@ function _getRoomAndDomainFromURLObject(url) {
126 126
     let room;
127 127
 
128 128
     if (url) {
129
-        domain = url.hostname;
129
+        domain = url.host;
130 130
 
131 131
         // The room (name) is the last component of pathname.
132 132
         room = url.pathname;

Chargement…
Annuler
Enregistrer