mirror of
https://github.com/MercuryWorkshop/dreamlandjs.git
synced 2025-05-15 15:10:02 -04:00
fix: css not caching properly
This commit is contained in:
parent
e97420cb9d
commit
e8be61b2d8
1 changed files with 1 additions and 1 deletions
|
@ -16,6 +16,7 @@ export function css(strings, ...values) {
|
||||||
})
|
})
|
||||||
.join('')}`
|
.join('')}`
|
||||||
|
|
||||||
|
cssmap[str] = uid
|
||||||
const styleElement = document.createElement('style')
|
const styleElement = document.createElement('style')
|
||||||
document.head.appendChild(styleElement)
|
document.head.appendChild(styleElement)
|
||||||
|
|
||||||
|
@ -41,6 +42,5 @@ export function css(strings, ...values) {
|
||||||
|
|
||||||
styleElement.textContent = `.${uid} {${selfstr}}` + '\n' + newstr
|
styleElement.textContent = `.${uid} {${selfstr}}` + '\n' + newstr
|
||||||
|
|
||||||
cssmap[str] = uid
|
|
||||||
return uid
|
return uid
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue