Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const injectTheme = () => {
if (pre) {
// debug('skipping injectTheme', pre)
return
}
// debug('injectTheme')
const key = `kui.editor.theme`
// dangit: in webpack we can require the CSS; but in plain nodejs,
// we cannot, so have to use filesystem operations to acquire the
// CSS content
injectCSS({
css: require('@kui-shell/plugin-editor/web/css/theme-alignment.css').toString(),
key
})
}