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 e41f883 commit 6a63ae0Copy full SHA for 6a63ae0
packages/app/src/sandbox/compile.js
@@ -344,13 +344,16 @@ async function compile({
344
});
345
346
try {
347
- if (localStorage.getItem('running')) {
+ // We set it as a time value for people that run two sandboxes on one computer
348
+ // they execute at the same time and we don't want them to conflict, so we check
349
+ // if the message was set a second ago
350
+ if (Date.now() < localStorage.getItem('running') > 1000) {
351
localStorage.removeItem('running');
352
showRunOnClick();
353
return;
354
}
355
- localStorage.setItem('running', 'true');
356
+ localStorage.setItem('running', Date.now());
357
} catch (e) {
358
/* no */
359
0 commit comments