Drip Runner return path: signed-out hand-off sets iap.return=driprunner and the email sign-in answers next=/api/my/driprunner (straight back into the game); refuel page dead ends keep a Back to Drip Runner button

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-30 14:01:47 -05:00
parent 587272673b
commit f1b37e0c4a
5 changed files with 10 additions and 7 deletions
+1
View File
@@ -2632,6 +2632,7 @@
$('mcVerifyBtn').addEventListener('click', busy($('mcVerifyBtn'), async () => {
const r = await api('/api/auth/email/verify', { email: $('mcEmail').value, code: $('mcCode').value, newsletter: !!($('nlOptin') && $('nlOptin').checked) });
IAP.status('You are in.', 'ok');
if (r.next && !r.created) { location.href = r.next; return; } // came from Drip Runner: straight back into the game
if (r.created && !(r.account && r.account.username)) await showOnboard(); // pick a username first
if (!(await showGauntlet())) await showLoginAd(); // welcome tour outranks the login ad
await render();