Просмотр исходного кода

[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.
master
Saúl Ibarra Corretgé 8 лет назад
Родитель
Сommit
b226c3aca3
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      react/features/app/functions.native.js

+ 1
- 1
react/features/app/functions.native.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить