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 fdd3afd commit 6c44336Copy full SHA for 6c44336
src/output/Preview.vue
@@ -278,7 +278,7 @@ async function updatePreview() {
278
279
if (sandbox.contentWindow?.document.body && props.bodyStyle) {
280
for (const key in props.bodyStyle) {
281
- sandbox.contentWindow.document.body.style[key] = props.bodyStyle[key]
+ sandbox.contentWindow.document.body.style[key] = props.bodyStyle[key]!
282
}
283
284
@@ -288,7 +288,7 @@ async function updatePreview() {
288
) as HTMLElement
289
if (appEl) {
290
for (const key in props.appStyle) {
291
- appEl.style[key] = props.appStyle[key]
+ appEl.style[key] = props.appStyle[key]!
292
293
294
0 commit comments