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
3448ce4b
Commit
3448ce4b
authored
Aug 11, 2016
by
chriseth
Committed by
GitHub
Aug 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #172 from ethereum/onlystable
Only use latest released version by default.
parents
63743b22
5f494305
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
app.js
src/app.js
+10
-1
No files found.
src/app.js
View file @
3448ce4b
...
@@ -454,6 +454,9 @@ var run = function () {
...
@@ -454,6 +454,9 @@ var run = function () {
var
loadVersion
=
function
(
version
)
{
var
loadVersion
=
function
(
version
)
{
setVersionText
(
'(loading)'
);
setVersionText
(
'(loading)'
);
queryParams
.
update
({
version
:
version
});
queryParams
.
update
({
version
:
version
});
if
(
window
.
soljsonReleases
!==
undefined
&&
window
.
soljsonReleases
[
version
]
!==
undefined
)
{
version
=
window
.
soljsonReleases
[
version
];
}
var
isFirefox
=
typeof
InstallTrigger
!==
'undefined'
;
var
isFirefox
=
typeof
InstallTrigger
!==
'undefined'
;
if
(
document
.
location
.
protocol
!==
'file:'
&&
Worker
!==
undefined
&&
isFirefox
)
{
if
(
document
.
location
.
protocol
!==
'file:'
&&
Worker
!==
undefined
&&
isFirefox
)
{
// Workers cannot load js on "file:"-URLs and we get a
// Workers cannot load js on "file:"-URLs and we get a
...
@@ -466,7 +469,13 @@ var run = function () {
...
@@ -466,7 +469,13 @@ var run = function () {
};
};
if
(
window
.
soljsonSources
!==
undefined
)
{
if
(
window
.
soljsonSources
!==
undefined
)
{
loadVersion
(
queryParams
.
get
().
version
||
'soljson-latest.js'
);
var
latestRelease
=
'soljson-latest.js'
;
if
(
window
.
soljsonReleases
!==
undefined
)
{
for
(
var
release
in
window
.
soljsonReleases
)
{
latestRelease
=
release
;
}
}
loadVersion
(
queryParams
.
get
().
version
||
latestRelease
);
}
else
{
}
else
{
loadVersion
(
'soljson.js'
);
loadVersion
(
'soljson.js'
);
}
}
...
...
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