bug fixing in custom url app launching

This commit is contained in:
Nuwan 2024-10-17 14:31:49 +05:30
parent 12feacc908
commit 7f693b7e54
1 changed files with 3 additions and 5 deletions

View File

@ -1553,16 +1553,14 @@
function createSessionByCustomUrlScheme(){
//an example URL would be: https://www.jamkazam.com/client#/createSession/custom~yes|privacy~2|description~hello|inviteeIds~1,2,3,4
if(context.location.hash === '' || context.location.hash.match(/custom~yes/) === null){
return;
}
var hash = decodeURIComponent(context.location.hash);
var hash = decodeURIComponent(context.location.hash);
if(hash.indexOf('custom~yes') === -1){
if(hash === '' || hash.match(/custom~yes/) === null){
return;
}
var qStr = hash.substring(hash.lastIndexOf('/') + 1);
//decode the query params according to the custom format
var qParamsArr = qStr.split('|');
var isCustom, privacy, description, inviteeIds;