(() => { const p = window.location.search.match(/(?:\?|&)promo=([^&]+)(?:&|$)/); if(p) { window.addEventListener('message', m => { if (m.origin === "https://embed.tapkat.org" && m.data.type === "tapkat:ready") { m.source.postMessage({ promo: p[1] }, "*"); } }, false); } })()