From 4ab0a78fa2ef072954b38fab22761b5852dbf5eb Mon Sep 17 00:00:00 2001 From: Stuart Kuentzel Date: Mon, 19 Jan 2026 18:12:59 +0900 Subject: [PATCH] prompt create network modal with ?app-sumo URL --- web/bringyour.com/lib-ur/connect.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/bringyour.com/lib-ur/connect.js b/web/bringyour.com/lib-ur/connect.js index d3cb038..4fbaa40 100644 --- a/web/bringyour.com/lib-ur/connect.js +++ b/web/bringyour.com/lib-ur/connect.js @@ -24,6 +24,7 @@ new function() { } else { self.finishConnectMount() } + }, 0) self.createConnectMount = function() { @@ -67,6 +68,12 @@ new function() { } else if (auth != null) { self.showConnectDialog() } + + // for app sumo + if (window.location.pathname == '/' && params.has('app-sumo')) { + self.showConnectDialog() + self.connectMount.render(new self.DialogCreateNetwork()) + } } self.notifyByJwtChanged = function() { @@ -2375,6 +2382,8 @@ new function() { const urlParams = new URLSearchParams(window.location.search) const bonusReferral = urlParams.get('bonus') const balanceCode = urlParams.get('balance-code') + const isAppSumoPrompt = urlParams.has('app-sumo') + const balanceCodeLabel = isAppSumoPrompt ? 'App Sumo Code' : 'Balance Code' let userAuthStr = userAuth || '' let bonusReferralStr = bonusReferral ?? '' @@ -2407,7 +2416,7 @@ new function() {
Enter referral code
-
Enter balance code
+
Enter ${self.escapeHtml(balanceCodeLabel)}