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
f7c6ac36
Commit
f7c6ac36
authored
Aug 10, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixLoading_local_compiler
parent
26e4c897
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
compiler-utils.ts
libs/remix-solidity/src/compiler/compiler-utils.ts
+3
-0
No files found.
libs/remix-solidity/src/compiler/compiler-utils.ts
View file @
f7c6ac36
...
@@ -23,6 +23,9 @@ export function urlFromVersion (version) {
...
@@ -23,6 +23,9 @@ export function urlFromVersion (version) {
*/
*/
export
function
canUseWorker
(
selectedVersion
)
{
export
function
canUseWorker
(
selectedVersion
)
{
const
version
=
semver
.
coerce
(
selectedVersion
)
const
version
=
semver
.
coerce
(
selectedVersion
)
if
(
!
version
)
{
return
browserSupportWorker
()
}
const
isNightly
=
selectedVersion
.
includes
(
'nightly'
)
const
isNightly
=
selectedVersion
.
includes
(
'nightly'
)
return
browserSupportWorker
()
&&
(
return
browserSupportWorker
()
&&
(
// All compiler versions (including nightlies) after 0.6.3 are wasm compiled
// All compiler versions (including nightlies) after 0.6.3 are wasm compiled
...
...
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