Skip to content

Commit 5c4e966

Browse files
lbogdanCompuIves
authored andcommitted
Signal puppeteer when compiling is done (codesandbox#417)
1 parent bb25f97 commit 5c4e966

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/app/src/sandbox/compile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ async function compile({
162162
initializeResizeListener();
163163
}
164164

165+
if (typeof window.__puppeteer__ === 'function') {
166+
window.__puppeteer__('done');
167+
}
168+
165169
dispatch({
166170
type: 'success',
167171
});

0 commit comments

Comments
 (0)