0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 21:02:43 +00:00

Remove console logs

This commit is contained in:
Trevor Buckner
2024-09-15 22:31:29 -04:00
parent a353425d07
commit 25a40e31c5
4 changed files with 1 additions and 13 deletions

View File

@@ -365,9 +365,7 @@ const Editor = createClass({
const textSplit = this.props.renderer == 'V3' ? /^\\page$/gm : /\\page/;
const textString = this.props.brew.text.split(textSplit).slice(0, targetPage-1).join(textSplit);
const lineCount = (textString.match(/\n/g) || []).length;
const targetLine = lineCount - 1; //Scroll to `\page`, which is one line back.
const targetLine = (textString.match(/\n/g) || []).length;
let currentY = this.codeEditor.current.codeMirror.getScrollInfo().top;
let targetY = this.codeEditor.current.codeMirror.heightAtLine(targetLine, 'local', true);