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

This commit is contained in:
Gustavo Emanuel Farias Rosa 2022-06-30 13:08:57 -03:00 committed by GitHub
parent bc040a3774
commit 96752e0d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}