Pārlūkot izejas kodu

fix(sip-invite) fix baseurl case sensitive replacement

master
Tudor-Ovidiu Avram 4 gadus atpakaļ
vecāks
revīzija
3339a1d19f
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      react/features/invite/functions.js

+ 2
- 1
react/features/invite/functions.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt