Skip to content

Commit

Permalink
[js] Set up workers earlier (#1941)
Browse files Browse the repository at this point in the history
to avoid "Error: currentWorker is undefined:"
  • Loading branch information
JasonGross authored Aug 5, 2024
1 parent 2f26964 commit 40f5742
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 40f5742

Please sign in to comment.