bug fixing in custom url app launching
This commit is contained in:
parent
12feacc908
commit
7f693b7e54
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue