Skip to content

Commit 5ef35bd

Browse files
committed
Move the 'running' cleanup statement
1 parent bb08f75 commit 5ef35bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/app/src/sandbox/compile.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,12 @@ async function compile({
582582

583583
hadError = true;
584584
} finally {
585+
try {
586+
localStorage.removeItem('running');
587+
} catch (e) {
588+
/* no */
589+
}
590+
585591
if (manager) {
586592
const managerState = {
587593
...manager.serialize(),
@@ -602,12 +608,6 @@ async function compile({
602608
dispatch({ type: 'status', status: 'idle' });
603609
dispatch({ type: 'done' });
604610

605-
try {
606-
localStorage.removeItem('running');
607-
} catch (e) {
608-
/* no */
609-
}
610-
611611
if (typeof window.__puppeteer__ === 'function') {
612612
window.__puppeteer__('done');
613613
}

0 commit comments

Comments
 (0)