MCPcopy Create free account
hub / github.com/codecombat/codecombat / promptForSignup

Method promptForSignup

app/views/play/CampaignView.js:1158–1164  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

1156 }
1157
1158 promptForSignup (options = {}) {
1159 if (/hoc/.test(this.terrain || '')) { return }
1160 if (features.noAuth || (this.campaign?.get('type') === 'hoc')) { return }
1161 this.endHighlight()
1162 storage.save(PROMPTED_FOR_SIGNUP, true)
1163 return this.openModalView(new CreateAccountModal({ supermodel: this.supermodel, ...options }))
1164 }
1165
1166 promptForSubscription (slug, label) {
1167 this.paywallReached()

Callers 3

afterInsertMethod · 0.95
promptForSubscriptionMethod · 0.95
onClickStartLevelMethod · 0.95

Calls 2

getMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected