open jamkazam:// custom url in same window

This commit is contained in:
Nuwan 2024-11-14 19:15:01 +05:30
parent 98dbb358bd
commit a388d5e1d0
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ const JKCustomUrlSchemaHandle = () => {
useEffect(() => {
if (urlScheme) {
window.open(urlScheme, "_blank");
window.open(urlScheme, '_self');
}
}, [urlScheme]);

View File

@ -99,7 +99,7 @@ const JKNewMusicSession = () => {
const q = `privacy~${payload.privacy}|description~${payload.description}|inviteeIds~${payload.inviteeIds}`;
//const urlScheme = jkCustomUrlScheme('createSession', q);
//window.location.href = urlScheme;
//history.push(`/applaunch?${q}`);
history.push(`/applaunch?${q}`);
} catch (error) {
toggleAppUnavilableModel();
}