浏览代码

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.

🤦
j8
Saúl Ibarra Corretgé 6 年前
父节点
当前提交
53c232fd76
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/deep-linking/functions.js

+ 1
- 1
react/features/deep-linking/functions.js 查看文件

@@ -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`;

正在加载...
取消
保存