We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f866c commit bbeadfaCopy full SHA for bbeadfa
docs/index.js
@@ -1,12 +1,12 @@
1
// Setup editros
2
const grammar = ace.edit("grammar-editor");
3
grammar.setShowPrintMargin(false);
4
-grammar.setValue(localStorage.getItem('grammarText'));
+grammar.setValue(localStorage.getItem('grammarText') || '');
5
grammar.moveCursorTo(0, 0);
6
7
const code = ace.edit("code-editor");
8
code.setShowPrintMargin(false);
9
-code.setValue(localStorage.getItem('codeText'));
+code.setValue(localStorage.getItem('codeText') || '');
10
code.moveCursorTo(0, 0);
11
12
const codeAst = ace.edit("code-ast");
0 commit comments