diff --git a/src/share.js b/src/share.js index 404bd9f..93853b0 100644 --- a/src/share.js +++ b/src/share.js @@ -2,10 +2,8 @@ import { textEditor } from "./common"; export function generateUrl() { // yank the text in ace - // console.log(textEditor.getValue()); var code = textEditor.getValue(); let encoded = encodeURIComponent(code); - // console.log(encoded); window.location.hash = ''; //this should clear it before replacing it window.location.hash = `code=${encoded}` saveToLocal(); diff --git a/src/text2tree.js b/src/text2tree.js index 349e610..5e406d5 100644 --- a/src/text2tree.js +++ b/src/text2tree.js @@ -242,12 +242,6 @@ class Lexer { this.currentLine += 1; this.index_before_this_line = this.i; this.startToken = [this.currentLine, this.i - this.index_before_this_line]; - // while (this.has('\n')) { - // this.skip(); - // this.currentLine += 1; - // this.index_before_this_line = this.i; - // this.startToken = [this.currentLine, this.i - this.index_before_this_line]; - // } continue; } if (!this.has_letter()){