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
26d56afa
Commit
26d56afa
authored
Oct 05, 2016
by
chriseth
Committed by
GitHub
Oct 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #245 from ethereum/load-offline-fix
Fix offline loading - catch all errors
parents
719a77ad
f12928da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
app.js
src/app.js
+6
-9
No files found.
src/app.js
View file @
26d56afa
...
@@ -552,15 +552,7 @@ var run = function () {
...
@@ -552,15 +552,7 @@ var run = function () {
loadVersion
(
$
(
'#versionSelector'
).
val
());
loadVersion
(
$
(
'#versionSelector'
).
val
());
});
});
$
.
getJSON
(
'https://ethereum.github.io/solc-bin/bin/list.json'
,
function
(
data
,
status
)
{
$
.
getJSON
(
'https://ethereum.github.io/solc-bin/bin/list.json'
).
done
(
function
(
data
)
{
// loading failed for some reason, fall back to local compiler
if
(
status
!==
'success'
)
{
$
(
'#versionSelector'
).
append
(
new
Option
(
'latest local version'
,
'builtin'
));
loadVersion
(
'builtin'
);
return
;
}
function
buildVersion
(
build
)
{
function
buildVersion
(
build
)
{
if
(
build
.
prerelease
&&
build
.
prerelease
.
length
>
0
)
{
if
(
build
.
prerelease
&&
build
.
prerelease
.
length
>
0
)
{
return
build
.
version
+
'-'
+
build
.
prerelease
;
return
build
.
version
+
'-'
+
build
.
prerelease
;
...
@@ -602,6 +594,11 @@ var run = function () {
...
@@ -602,6 +594,11 @@ var run = function () {
}
}
loadVersion
(
selectedVersion
);
loadVersion
(
selectedVersion
);
}).
fail
(
function
(
xhr
,
text
,
err
)
{
// loading failed for some reason, fall back to local compiler
$
(
'#versionSelector'
).
append
(
new
Option
(
'latest local version'
,
'builtin'
));
loadVersion
(
'builtin'
);
});
});
storage
.
sync
();
storage
.
sync
();
...
...
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