mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-05-10 03:08:40 +00:00
lint pass
This commit is contained in:
@@ -49,9 +49,9 @@ const emojiCompletionList = (context)=>{
|
||||
//Info is the tooltip
|
||||
|
||||
return {
|
||||
from : word.from + 1,
|
||||
from : word.from + 1,
|
||||
options,
|
||||
filter: false,
|
||||
filter : false,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -364,7 +364,7 @@ const CodeEditor = forwardRef(
|
||||
|
||||
view.dispatch({
|
||||
selection : { anchor: pos },
|
||||
effects : [setProgrammaticCursorLine.of(pos), EditorView.scrollIntoView(pos, { y: 'start' })],
|
||||
effects : [setProgrammaticCursorLine.of(pos), EditorView.scrollIntoView(pos, { y: 'start' })],
|
||||
});
|
||||
|
||||
view.focus();
|
||||
|
||||
@@ -87,7 +87,7 @@ const Editor = createReactClass({
|
||||
componentDidMount : function() {
|
||||
|
||||
const brewRenderer = document.getElementById('BrewRenderer');
|
||||
brewRenderer.onload = () => brewRenderer.contentDocument?.addEventListener('keydown', this.handleControlKeys);
|
||||
brewRenderer.onload = ()=>brewRenderer.contentDocument?.addEventListener('keydown', this.handleControlKeys);
|
||||
document.addEventListener('keydown', this.handleControlKeys);
|
||||
|
||||
const editorTheme = window.localStorage.getItem(EDITOR_THEME_KEY);
|
||||
|
||||
Reference in New Issue
Block a user