summaryrefslogtreecommitdiffstats
path: root/src/webview
diff options
context:
space:
mode:
authorLibravatar Ricardo Cino <ricardo@cino.io>2022-06-23 18:10:39 +0200
committerLibravatar GitHub <noreply@github.com>2022-06-23 16:10:39 +0000
commit6b2c2b8dfb86245a1747bf7977159f5129461863 (patch)
tree28944f62a962d8a658262ea902f8554d4419fa9e /src/webview
parentchore: featureStore and GlobalErrorStore JS => TS (diff)
downloadferdium-app-6b2c2b8dfb86245a1747bf7977159f5129461863.tar.gz
ferdium-app-6b2c2b8dfb86245a1747bf7977159f5129461863.tar.zst
ferdium-app-6b2c2b8dfb86245a1747bf7977159f5129461863.zip
chore: servicesStore + models into typescript (#344)
Diffstat (limited to 'src/webview')
-rw-r--r--src/webview/recipe.js17
1 files changed, 10 insertions, 7 deletions
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 {
158 } 158 }
159 159
160 @computed get spellcheckerLanguage() { 160 @computed get spellcheckerLanguage() {
161 return ifUndefinedString(this.settings.service.spellcheckerLanguage, this.settings.app.spellcheckerLanguage); 161 return ifUndefinedString(
162 this.settings.service.spellcheckerLanguage,
163 this.settings.app.spellcheckerLanguage,
164 );
162 } 165 }
163 166
164 cldIdentifier = null; 167 cldIdentifier = null;
@@ -197,13 +200,13 @@ class RecipeController {
197 // Add ability to go forward or back with mouse buttons (inside the recipe) 200 // Add ability to go forward or back with mouse buttons (inside the recipe)
198 window.addEventListener('mouseup', e => { 201 window.addEventListener('mouseup', e => {
199 if (e.button === 3) { 202 if (e.button === 3) {
200 e.preventDefault() 203 e.preventDefault();
201 e.stopPropagation() 204 e.stopPropagation();
202 window.history.back() 205 window.history.back();
203 } else if (e.button === 4) { 206 } else if (e.button === 4) {
204 e.preventDefault() 207 e.preventDefault();
205 e.stopPropagation() 208 e.stopPropagation();
206 window.history.forward() 209 window.history.forward();
207 } 210 }
208 }); 211 });
209 } 212 }