|
|
@ -510,10 +510,8 @@ export const CompilerContainer = (props: CompilerContainerProps) => { |
|
|
|
// Workers cannot load js on "file:"-URLs and we get a
|
|
|
|
// Workers cannot load js on "file:"-URLs and we get a
|
|
|
|
// "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium,
|
|
|
|
// "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium,
|
|
|
|
// resort to non-worker version in that case.
|
|
|
|
// resort to non-worker version in that case.
|
|
|
|
console.log('VERSION', selectedVersion) |
|
|
|
|
|
|
|
if (selectedVersion === 'builtin') selectedVersion = state.defaultVersion |
|
|
|
if (selectedVersion === 'builtin') selectedVersion = state.defaultVersion |
|
|
|
if (selectedVersion !== 'builtin' && canUseWorker(selectedVersion)) { |
|
|
|
if (selectedVersion !== 'builtin' && canUseWorker(selectedVersion)) { |
|
|
|
console.log('loading ' + url + ' with worker') |
|
|
|
|
|
|
|
compileTabLogic.compiler.loadVersion(true, url) |
|
|
|
compileTabLogic.compiler.loadVersion(true, url) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
compileTabLogic.compiler.loadVersion(false, url) |
|
|
|
compileTabLogic.compiler.loadVersion(false, url) |
|
|
|