From a7a239b09d3f2e8cd204d14490a93b11704466d8 Mon Sep 17 00:00:00 2001 From: Aniket <30843294+Aniket-Engg@users.noreply.github.com> Date: Wed, 12 Oct 2022 20:02:31 +0530 Subject: [PATCH] Update compiler-container.tsx --- .../solidity-compiler/src/lib/compiler-container.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index 6b470702e1..b26b3ad569 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -559,9 +559,8 @@ export const CompilerContainer = (props: CompilerContainerProps) => { // "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium, // resort to non-worker version in that case. if (selectedVersion === 'builtin') { - compileTabLogic.compiler.loadVersion(false, url) - } - else if (selectedVersion !== 'builtin' && canUseWorker(selectedVersion)) { + compileTabLogic.compiler.loadVersion(true, url) + } else if (selectedVersion !== 'builtin' && canUseWorker(selectedVersion)) { compileTabLogic.compiler.loadVersion(true, url) } else { compileTabLogic.compiler.loadVersion(false, url)