From 6b2c2b8dfb86245a1747bf7977159f5129461863 Mon Sep 17 00:00:00 2001 From: Ricardo Cino Date: Thu, 23 Jun 2022 18:10:39 +0200 Subject: chore: servicesStore + models into typescript (#344) --- src/webview/recipe.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/webview') diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 847a720ff..9d5a97767 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js @@ -158,7 +158,10 @@ class RecipeController { } @computed get spellcheckerLanguage() { - return ifUndefinedString(this.settings.service.spellcheckerLanguage, this.settings.app.spellcheckerLanguage); + return ifUndefinedString( + this.settings.service.spellcheckerLanguage, + this.settings.app.spellcheckerLanguage, + ); } cldIdentifier = null; @@ -197,13 +200,13 @@ class RecipeController { // Add ability to go forward or back with mouse buttons (inside the recipe) window.addEventListener('mouseup', e => { if (e.button === 3) { - e.preventDefault() - e.stopPropagation() - window.history.back() + e.preventDefault(); + e.stopPropagation(); + window.history.back(); } else if (e.button === 4) { - e.preventDefault() - e.stopPropagation() - window.history.forward() + e.preventDefault(); + e.stopPropagation(); + window.history.forward(); } }); } -- cgit v1.2.3-70-g09d2