Make autocompile a configuration item

pull/1/head
Alex Beregszaszi 8 years ago
parent a451c5f380
commit 7bb10cd184
  1. 5
      src/app.js

@ -524,9 +524,14 @@ var run = function () {
$('#staticanalysisView').append(staticanalysis.render())
var autoCompile = document.querySelector('#autoCompile').checked
if (config.exists('autoCompile')) {
autoCompile = config.get('autoCompile')
$('#autoCompile').checked = autoCompile
}
document.querySelector('#autoCompile').addEventListener('change', function () {
autoCompile = document.querySelector('#autoCompile').checked
config.set('autoCompile', autoCompile)
})
function runCompiler () {

Loading…
Cancel
Save