瀏覽代碼

fix(sip-invite) fix baseurl case sensitive replacement

master
Tudor-Ovidiu Avram 4 年之前
父節點
當前提交
3339a1d19f
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      react/features/invite/functions.js

+ 2
- 1
react/features/invite/functions.js 查看文件

@@ -829,8 +829,9 @@ export function inviteSipEndpoints( // eslint-disable-line max-params
829 829
         return Promise.resolve();
830 830
     }
831 831
 
832
+    const regex = new RegExp(`/${roomName}`, 'i');
832 833
     const baseUrl = Object.assign(new URL(locationURL.toString()), {
833
-        pathname: locationURL.pathname.replace(`/${roomName}`, ''),
834
+        pathname: locationURL.pathname.replace(regex, ''),
834 835
         hash: '',
835 836
         search: ''
836 837
     });

Loading…
取消
儲存