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.
🤦
This commit is contained in:
parent
3b6e34e96b
commit
53c232fd76
|
@ -51,7 +51,7 @@ export function generateDeepLinkingURL() {
|
|||
// https://developer.chrome.com/multidevice/android/intents
|
||||
if (Platform.OS === 'android') {
|
||||
// https://meet.jit.si/foo -> meet.jit.si/foo
|
||||
const url = href.replace(regex, '').substr(3);
|
||||
const url = href.replace(regex, '').substr(2);
|
||||
const pkg = interfaceConfig.ANDROID_APP_PACKAGE || 'org.jitsi.meet';
|
||||
|
||||
return `intent://${url}/#Intent;scheme=${appScheme};package=${pkg};end`;
|
||||
|
|
Loading…
Reference in New Issue