From f9e0d252d979a7cb71500f66402f636d5bdff7bc Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 26 May 2020 18:30:19 -0400 Subject: [PATCH] Fixed initial value problem with Optimized AST mode --- docs/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.js b/docs/index.js index 2e0e44b..646b9f8 100644 --- a/docs/index.js +++ b/docs/index.js @@ -27,7 +27,7 @@ codeAstOptimized.setOptions({ }) codeAstOptimized.renderer.$cursorLayer.element.style.opacity=0; -$('#opt_mode').val(localStorage.getItem('optimazationMode')); +$('#opt_mode').val(localStorage.getItem('optimazationMode') || 'all'); $('#opt_rules').val(localStorage.getItem('optimazationRules')); function generateErrorListHTML(errors) {