Commit 7bb10cd1 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Make autocompile a configuration item

parent a451c5f3
...@@ -524,9 +524,14 @@ var run = function () { ...@@ -524,9 +524,14 @@ var run = function () {
$('#staticanalysisView').append(staticanalysis.render()) $('#staticanalysisView').append(staticanalysis.render())
var autoCompile = document.querySelector('#autoCompile').checked var autoCompile = document.querySelector('#autoCompile').checked
if (config.exists('autoCompile')) {
autoCompile = config.get('autoCompile')
$('#autoCompile').checked = autoCompile
}
document.querySelector('#autoCompile').addEventListener('change', function () { document.querySelector('#autoCompile').addEventListener('change', function () {
autoCompile = document.querySelector('#autoCompile').checked autoCompile = document.querySelector('#autoCompile').checked
config.set('autoCompile', autoCompile)
}) })
function runCompiler () { function runCompiler () {
......
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