Skip to content

Commit

Permalink
add id
Browse files Browse the repository at this point in the history
  • Loading branch information
liady committed Jun 27, 2024
1 parent ee975a3 commit b935f8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/src/core/tailwind/tailwind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ const adjustRuleScope = memoize(adjustRuleScopeImpl, {
function updateTwind(config: TwindConfigType, prefixSelector: string | null) {
const element = document.head.appendChild(document.createElement('style'))
element.appendChild(document.createTextNode('')) // Avoid Edge bug where empty style elements doesn't create sheets
element.setAttribute('id', `twind-styles-${Math.random().toString(36).slice(2)}`)

const sheet = cssom(element)
const customSheet: Sheet = {
Expand Down

0 comments on commit b935f8d

Please sign in to comment.