Solving problem when there is https in the url (#47)

pull/48/head
Gustavo Emanuel Farias Rosa 2 years ago committed by GitHub
parent bc040a3774
commit 96752e0d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,11 +40,14 @@ const DeepLink = ()=>{
if(roomName != 'bigbluebutton'){
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 = {
name: NAME_PORTALS_DEEP_LINK,
url: SCHEME_DEFAULT+linkWhitoutSchemeAndName,
url: linkWhitoutSchemeAndName,
temporary: true
}

Loading…
Cancel
Save