fix: css not caching properly

This commit is contained in:
CoolElectronics 2024-04-21 18:33:43 -04:00
parent e97420cb9d
commit e8be61b2d8
No known key found for this signature in database
GPG key ID: F63593D168636C50

View file

@ -16,6 +16,7 @@ export function css(strings, ...values) {
})
.join('')}`
cssmap[str] = uid
const styleElement = document.createElement('style')
document.head.appendChild(styleElement)
@ -41,6 +42,5 @@ export function css(strings, ...values) {
styleElement.textContent = `.${uid} {${selfstr}}` + '\n' + newstr
cssmap[str] = uid
return uid
}