We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e5ef99 commit 501e552Copy full SHA for 501e552
src/output/Preview.vue
@@ -232,10 +232,8 @@ async function updatePreview() {
232
previewOptions?.bodyHTML || ''
233
}\``),
234
...modules,
235
- `setTimeout(()=> {
236
- document.querySelectorAll('style[css]').forEach(el => el.remove())
237
- document.head.insertAdjacentHTML('beforeend', window.__css__.map(s => \`<style css>\${s}</style>\`).join('\\n'))
238
- }, 1)`,
+ `document.querySelectorAll('style[css]').forEach(el => el.remove())
+ document.head.insertAdjacentHTML('beforeend', window.__css__.map(s => \`<style css>\${s}</style>\`).join('\\n'))`,
239
]
240
241
// if main file is a vue file, mount it.
0 commit comments