Skip to content

Commit 93e2377

Browse files
committed
fix: ensure body is a DOM node
1 parent 5673e29 commit 93e2377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/screenshot/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const doDisableAnimations = () => {
9191
}
9292
`
9393
const style = document.createElement('style')
94-
document.body.append(style)
94+
if (document.body) document.body.append(style)
9595
if (style.sheet) style.sheet.insertRule(rule)
9696
}
9797

0 commit comments

Comments
 (0)