Skip to content

Commit 5ef3845

Browse files
committed
Fix HTML being null
1 parent b40c004 commit 5ef3845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/sandbox/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function getCurrentManager(): ?Manager {
4141
return manager;
4242
}
4343

44-
export function getHTMLParts(html: string) {
44+
export function getHTMLParts(html: string = '') {
4545
if (html.includes('<body>')) {
4646
const bodyMatcher = /<body>([\s\S]*)<\/body>/m;
4747
const headMatcher = /<head>([\s\S]*)<\/head>/m;

0 commit comments

Comments
 (0)