Skip to content

Commit

Permalink
[js] Set up workers earlier
Browse files Browse the repository at this point in the history
to avoid "Error: currentWorker is undefined:"
  • Loading branch information
JasonGross committed Aug 5, 2024
1 parent 2f26964 commit 986e0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fiat-html/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ document.addEventListener('DOMContentLoaded', function() {
wasmCheckbox.checked = true;
}

setupWorkers();

if (argv) {
if (nonFalseQueryParam(interactive)) {
inputArgs.value = decodeURIComponent(argv);
Expand All @@ -314,8 +316,6 @@ document.addEventListener('DOMContentLoaded', function() {
} else {
inputForm.classList.remove('hidden');
}

setupWorkers();
}

parseQueryParams();
Expand Down

0 comments on commit 986e0c4

Please sign in to comment.