Update compiler-container.tsx

builtincomp
Aniket 2 years ago committed by GitHub
parent 21fbbe3a4b
commit a7a239b09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      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)

Loading…
Cancel
Save