Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const injectCss = (
selector: string,
rules: Array,
fragments: Array
) => {
injectStyleOnce(selector, selector, [rules], false)
fragments.forEach((fragment) => {
injectCss(joinSelectors(selector, fragment.selector), fragment.rules, fragment.fragments)
})
}