Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion web/bringyour.com/lib-ur/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ new function() {
} else {
self.finishConnectMount()
}

}, 0)

self.createConnectMount = function() {
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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 ?? ''
Expand Down Expand Up @@ -2407,7 +2416,7 @@ new function() {
<hr />
<div class="info-title">Enter referral code</div>
<div><input id="${id('create-bonus-referral')}" type="text" value="${self.escapeHtml(bonusReferralStr)}" class="form-control"></div>
<div class="info-title">Enter balance code</div>
<div class="info-title">Enter ${self.escapeHtml(balanceCodeLabel)}</div>
<div><input id="${id('create-balance-code')}" type="text" value="${self.escapeHtml(balanceCodeStr)}" class="form-control"></div>
</form>
</div>
Expand Down