Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function renderGettingStarted({ REPL }: Arguments) {
if (theme.gettingStarted && typeof theme.gettingStarted !== 'string') {
const marked = await markdown()
const wrapper = document.createElement('div')
wrapper.classList.add('page-content')
wrapper.innerHTML = marked(i18nFromMap(theme.gettingStarted))
return wrapper
} else if (typeof theme.gettingStarted === 'string' && theme.gettingStarted !== 'getting started') {
return REPL.qexec(theme.gettingStarted)
} else {
console.error('no getting started content defined by client')
const empty = document.createElement('div')
return empty
}
}
async function renderGettingStarted({ REPL }: Arguments) {
if (theme.gettingStarted && typeof theme.gettingStarted !== 'string') {
const marked = await markdown()
const wrapper = document.createElement('div')
wrapper.classList.add('page-content')
wrapper.innerHTML = marked(i18nFromMap(theme.gettingStarted))
return wrapper
} else if (typeof theme.gettingStarted === 'string' && theme.gettingStarted !== 'getting started') {
return REPL.qexec(theme.gettingStarted)
} else {
console.error('no getting started content defined by client')
const empty = document.createElement('div')
return empty
}
}
async function renderGettingStarted({ REPL }: Arguments) {
if (theme.gettingStarted && typeof theme.gettingStarted !== 'string') {
const marked = await markdown()
const wrapper = document.createElement('div')
wrapper.classList.add('page-content')
wrapper.innerHTML = marked(i18nFromMap(theme.gettingStarted))
return wrapper
} else if (typeof theme.gettingStarted === 'string' && theme.gettingStarted !== 'getting started') {
return REPL.qexec(theme.gettingStarted)
} else {
console.error('no getting started content defined by client')
const empty = document.createElement('div')
return empty
}
}
async function renderGettingStarted({ REPL }: Arguments) {
if (theme.gettingStarted && typeof theme.gettingStarted !== 'string') {
const marked = await markdown()
const wrapper = document.createElement('div')
wrapper.classList.add('page-content')
wrapper.innerHTML = marked(i18nFromMap(theme.gettingStarted))
return wrapper
} else if (typeof theme.gettingStarted === 'string' && theme.gettingStarted !== 'getting started') {
return REPL.qexec(theme.gettingStarted)
} else {
console.error('no getting started content defined by client')
const empty = document.createElement('div')
return empty
}
}