remove injectCSS

This commit is contained in:
Philipp Kühn
2020-04-10 23:09:31 +02:00
parent 8da3b61d46
commit bb742c1db2
2 changed files with 1 additions and 15 deletions

View File

@@ -1,13 +0,0 @@
export default function injectCSS(css: string) {
const style = document.createElement('style')
style.type = 'text/css'
style.textContent = css
const { head } = document
const { firstChild } = head
if (firstChild) {
return head.insertBefore(style, firstChild)
} else {
return head.appendChild(style)
}
}