Browse Source

misc: fix off-by-one error

e729f0948c contained an off-by-one error:

URI_PROTOCOL_PATTERN includes the colon, so after applyting the regex we are
left with something like '//example.com/room' thus we only need to strip the
first 2 characters.

🤦
master
Saúl Ibarra Corretgé 6 years ago
parent
commit
53c232fd76
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      react/features/deep-linking/functions.js

+ 1
- 1
react/features/deep-linking/functions.js View File

@@ -51,7 +51,7 @@ export function generateDeepLinkingURL() {
51 51
     // https://developer.chrome.com/multidevice/android/intents
52 52
     if (Platform.OS === 'android') {
53 53
         // https://meet.jit.si/foo -> meet.jit.si/foo
54
-        const url = href.replace(regex, '').substr(3);
54
+        const url = href.replace(regex, '').substr(2);
55 55
         const pkg = interfaceConfig.ANDROID_APP_PACKAGE || 'org.jitsi.meet';
56 56
 
57 57
         return `intent://${url}/#Intent;scheme=${appScheme};package=${pkg};end`;

Loading…
Cancel
Save