Commit 1ea66f16 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #722 from ethereum/fixAutoCompile

Fix autocompile
parents e7ca17a9 4a74018a
......@@ -183,12 +183,12 @@ function compileTab (container, appAPI, appEvents, opts) {
// ----------------- autoCompile -----------------
var autoCompileInput = compileContainer.querySelector('#autoCompile')
var autoCompile = true
if (appAPI.config.exists('autoCompile')) {
var autoCompile = appAPI.config.get('autoCompile')
if (autoCompile) {
autoCompileInput.setAttribute('checked', autoCompile)
}
autoCompile = appAPI.config.get('autoCompile')
}
appAPI.config.set('autoCompile', autoCompile)
autoCompileInput.setAttribute('checked', autoCompile)
autoCompileInput.addEventListener('change', function () {
appAPI.config.set('autoCompile', autoCompileInput.checked)
......
......@@ -12,8 +12,8 @@ function checkCompiledContracts (browser, compiled, callback) {
return null
} else {
var ret = []
for (var c in contracts) {
ret.push(contracts[c].innerText)
for (var c = 0; c < contracts.length; c++) {
ret.push(contracts[c].querySelector('div').innerHTML)
}
return ret
}
......
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