fixed a "leak" that made too many <style> elements
This commit is contained in:
parent
1306c46a53
commit
eca8da6593
|
@ -188,7 +188,9 @@ export const applyConfig = (input) => {
|
|||
.filter(([k, v]) => v)
|
||||
.map(([k, v]) => `--${k}: ${v}`).join(';')
|
||||
|
||||
document.getElementById('style-config')?.remove()
|
||||
const styleEl = document.createElement('style')
|
||||
styleEl.id = 'style-config'
|
||||
head.appendChild(styleEl)
|
||||
const styleSheet = styleEl.sheet
|
||||
|
||||
|
|
Loading…
Reference in a new issue