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 b40c004 commit 5ef3845Copy full SHA for 5ef3845
packages/app/src/sandbox/compile.js
@@ -41,7 +41,7 @@ export function getCurrentManager(): ?Manager {
41
return manager;
42
}
43
44
-export function getHTMLParts(html: string) {
+export function getHTMLParts(html: string = '') {
45
if (html.includes('<body>')) {
46
const bodyMatcher = /<body>([\s\S]*)<\/body>/m;
47
const headMatcher = /<head>([\s\S]*)<\/head>/m;
0 commit comments