Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
58a71ed8
Commit
58a71ed8
authored
Sep 20, 2019
by
Aniket-Engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
separate function added
parent
df3d4932
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
compilerContainer.js
src/app/tabs/compileTab/compilerContainer.js
+5
-1
No files found.
src/app/tabs/compileTab/compilerContainer.js
View file @
58a71ed8
...
@@ -320,7 +320,7 @@ class CompilerContainer {
...
@@ -320,7 +320,7 @@ class CompilerContainer {
url
=
`
${
this
.
data
.
baseurl
}
/
${
this
.
data
.
selectedVersion
}
`
url
=
`
${
this
.
data
.
baseurl
}
/
${
this
.
data
.
selectedVersion
}
`
}
}
// Check if browser is compatible with web worker
// Check if browser is compatible with web worker
if
(
document
.
location
.
protocol
!==
'file:'
&&
Worker
!==
undefined
)
{
if
(
this
.
browserSupportWorker
)
{
// 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.
...
@@ -374,6 +374,10 @@ class CompilerContainer {
...
@@ -374,6 +374,10 @@ class CompilerContainer {
this
.
data
.
compileTimeout
=
window
.
setTimeout
(()
=>
this
.
compileIfAutoCompileOn
(),
this
.
data
.
timeout
)
this
.
data
.
compileTimeout
=
window
.
setTimeout
(()
=>
this
.
compileIfAutoCompileOn
(),
this
.
data
.
timeout
)
}
}
browserSupportWorker
()
{
return
document
.
location
.
protocol
!==
'file:'
&&
Worker
!==
undefined
}
}
}
module
.
exports
=
CompilerContainer
module
.
exports
=
CompilerContainer
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment