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

Method getBanner

app/views/HomeView.js:113–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 getBanner () {
114 return fetchJson('/db/banner', { data: { cacheEdge: true } }).then(data => {
115 if (!data) { return }
116 this.banner = data
117 const content = utils.i18n(data, 'content')
118 this.banner.display = DOMPurify.sanitize(marked(content != null ? content : ''))
119 return this.renderSelectors('#top-banner')
120 })
121 }
122
123 onClickRequestQuoteModal () {
124 const modal = new GetLicensesModal()

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected