Launch checklist: read buyer count and referrals from the dashboard endpoint
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
try { await IAP.renderNav('training'); } catch (e) {}
|
||||
let me = null, cfg = {};
|
||||
try { me = await (await fetch('/api/me')).json(); } catch (e) {}
|
||||
// buyerCount and the referral list live on the dashboard endpoint; merge it in
|
||||
if (me && me.signedIn) { try { const d = await (await fetch('/api/my/dashboard')).json(); if (d && !d.error) me = Object.assign({}, me, d, { signedIn: true, email: me.email }); } catch (e) {} }
|
||||
try { cfg = await IAP.getConfig(); } catch (e) {}
|
||||
const signedIn = !!(me && me.signedIn && me.email);
|
||||
$('gate').style.display = signedIn ? 'none' : 'block';
|
||||
|
||||
+1
-1
@@ -86,6 +86,6 @@
|
||||
</footer>
|
||||
</div>
|
||||
<script src="/assets/common.js?v=20260911b"></script>
|
||||
<script src="/assets/launch.js?v=20260911a"></script>
|
||||
<script src="/assets/launch.js?v=20260911b"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user