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 render (state, template, data, themeId) {
debug3(state, `Interface.render(${template}, ${themeId}, ${data.id}):start`)
const options = getOptions(state, { themeId })
const rendered = await UI.render(options, template, data)
debug3(state, `Interface.render(${template}, ${themeId}, ${data.id}):end`)
return rendered
}
async function setup (state) {
debug3(state, 'Interface.setup():start')
const options = getOptions(state)
await UI.setup(options)
debug3(state, 'Interface.setup():end')
}