Skip to content

Commit 3fab018

Browse files
author
Ives van Hoorne
committed
Always dispatch errors for puppeteer
1 parent 06fd3a0 commit 3fab018

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/app/src/sandbox/compile.js

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

165-
if (typeof window.__puppeteer__ === 'function') {
166-
window.__puppeteer__('done');
167-
}
168-
169165
dispatch({
170166
type: 'success',
171167
});
@@ -181,6 +177,10 @@ async function compile({
181177

182178
window.dispatchEvent(event);
183179
}
180+
181+
if (typeof window.__puppeteer__ === 'function') {
182+
window.__puppeteer__('done');
183+
}
184184
}
185185

186186
type Arguments = {

0 commit comments

Comments
 (0)