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

Method getBanner

app/views/HomeCNView.js:89–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 }
88
89 getBanner () {
90 return fetchJson('/db/banner', { data: { cacheEdge: true } }).then(data => {
91 this.banner = data
92 const content = utils.i18n(data, 'content')
93 this.banner.display = DOMPurify.sanitize(marked(content != null ? content : ''))
94 return this.banner.display
95 })
96 }
97
98 onLoaded () {
99 if (this.trialRequests != null ? this.trialRequests.size() : undefined) { this.trialRequest = this.trialRequests.first() }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected