Skip to content

Commit 4bd312f

Browse files
committed
Var :P
1 parent 031c16e commit 4bd312f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/editor/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ function editor(app, opts, done){
5555
scroll: false
5656
});
5757

58-
var top = codeEditor.charCoords(anchor, 'local').top;
59-
var halfHeight = codeEditor.getScrollerElement().offsetHeight / 2;
58+
const top = codeEditor.charCoords(anchor, 'local').top;
59+
const halfHeight = codeEditor.getScrollerElement().offsetHeight / 2;
6060
codeEditor.scrollTo(null, top - halfHeight - 5);
6161
}
6262

0 commit comments

Comments
 (0)