0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 18:48:39 +00:00

lint pass

This commit is contained in:
Víctor Losada Hernández
2026-04-15 10:28:28 +02:00
parent 44d2f6c548
commit 98749ed3e0
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -87,9 +87,9 @@ 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);
if(editorTheme && EditorThemes.includes(editorTheme)) {
this.setState({ editorTheme });