diff options
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 17 |
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 | } |