Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(props) {
super(props)
Prism.registerLanguage('javascript', javascript)
Prism.registerLanguage('jsx', jsx)
if (props.theme && props.theme.prism && props.theme.prism.languages) {
const languages = props.theme.prism.languages
Object.keys(languages).forEach(key => {
Prism.registerLanguage(key, languages[key])
})
}
}
Object.keys(languages).forEach(key => {
Prism.registerLanguage(key, languages[key])
})
}
constructor(props) {
super(props)
Prism.registerLanguage('javascript', javascript)
Prism.registerLanguage('jsx', jsx)
if (props.theme && props.theme.prism && props.theme.prism.languages) {
const languages = props.theme.prism.languages
Object.keys(languages).forEach(key => {
Prism.registerLanguage(key, languages[key])
})
}
}