Skip to content

Commit

Permalink
feat: remove un-cloak to html node as well as body (unocss#2026)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbrajon authored and praburangki committed Jan 12, 2023
1 parent 33b4a67 commit 8228f59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/runtime/src/index.ts
Expand Up @@ -172,6 +172,7 @@ export default function init(inlineConfig: RuntimeOptions = {}) {
const html = body && body.outerHTML
if (html) {
await extract(`${html} ${decodeHtml(html)}`)
removeCloak(defaultDocument.documentElement)
removeCloak(body)
}
}
Expand Down

0 comments on commit 8228f59

Please sign in to comment.