瀏覽代碼

[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
     let room;
126
     let room;
127
 
127
 
128
     if (url) {
128
     if (url) {
129
-        domain = url.hostname;
129
+        domain = url.host;
130
 
130
 
131
         // The room (name) is the last component of pathname.
131
         // The room (name) is the last component of pathname.
132
         room = url.pathname;
132
         room = url.pathname;

Loading…
取消
儲存