Solving problem when there is https in the url (#47)
This commit is contained in:
parent
bc040a3774
commit
96752e0d2f
@ -40,11 +40,14 @@ const DeepLink = ()=>{
|
|||||||
if(roomName != 'bigbluebutton'){
|
if(roomName != 'bigbluebutton'){
|
||||||
NAME_PORTALS_DEEP_LINK = roomName
|
NAME_PORTALS_DEEP_LINK = roomName
|
||||||
}
|
}
|
||||||
|
let linkWhitoutSchemeAndName = linkWithoutScheme.replace(/^[A-z-.\w]+\//, '')
|
||||||
|
|
||||||
const linkWhitoutSchemeAndName = linkWithoutScheme.replace(/^[A-z-.\w]+\//, '')
|
if (!linkWhitoutSchemeAndName.includes('://')) {
|
||||||
|
linkWhitoutSchemeAndName = SCHEME_DEFAULT + linkWhitoutSchemeAndName
|
||||||
|
}
|
||||||
const portalToAdd:IPortal = {
|
const portalToAdd:IPortal = {
|
||||||
name: NAME_PORTALS_DEEP_LINK,
|
name: NAME_PORTALS_DEEP_LINK,
|
||||||
url: SCHEME_DEFAULT+linkWhitoutSchemeAndName,
|
url: linkWhitoutSchemeAndName,
|
||||||
temporary: true
|
temporary: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user