Redirecting To App Store
let code = null;
// check ?code= parameter const params = new URLSearchParams(window.location.search); code = params.get("code");
// if not found, extract from path if(!code){ const parts = window.location.pathname.split("/"); code = parts.pop() || parts.pop(); }
navigator.clipboard.writeText("lifti_ref=" + code);
console.log("Referral Code:", code);
setTimeout(()=>{ window.location.href = "https://lifti.dynalinks.app/referral/" + code; },1000);