Commit df3d4932 authored by Aniket-Engg's avatar Aniket-Engg

firefox restriction removed

parent f57feeab
......@@ -319,8 +319,8 @@ class CompilerContainer {
}
url = `${this.data.baseurl}/${this.data.selectedVersion}`
}
const isFirefox = typeof InstallTrigger !== 'undefined'
if (document.location.protocol !== 'file:' && Worker !== undefined && isFirefox) {
// Check if browser is compatible with web worker
if (document.location.protocol !== 'file:' && Worker !== undefined) {
// Workers cannot load js on "file:"-URLs and we get a
// "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium,
// resort to non-worker version in that case.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment