浏览代码

[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é 8 年前
父节点
当前提交
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;

正在加载...
取消
保存