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 b1594d0 commit ece4414Copy full SHA for ece4414
src/output/Preview.vue
@@ -228,10 +228,8 @@ async function updatePreview() {
228
previewOptions?.bodyHTML || ''
229
}\``),
230
...modules,
231
- `setTimeout(()=> {
232
- document.querySelectorAll('style[css]').forEach(el => el.remove())
233
- document.head.insertAdjacentHTML('beforeend', window.__css__.map(s => \`<style css>\${s}</style>\`).join('\\n'))
234
- }, 1)`,
+ `document.querySelectorAll('style[css]').forEach(el => el.remove())
+ document.head.insertAdjacentHTML('beforeend', window.__css__.map(s => \`<style css>\${s}</style>\`).join('\\n'))`,
235
]
236
237
// if main file is a vue file, mount it.
0 commit comments