From 0848eb8ddf6cfd32f6e96aac0ff592ad978c13bd Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Thu, 28 Oct 2021 19:28:42 +0200 Subject: build: use node 16 and npm 8 (#2157) - change node version from 14.18.1 to 16.13.0 - change npm version from 6.14.13 to 8.1.0 - update package-lock.json to lockfileVersion 2 - use @sindresorhus/do-not-disturb instead of macos-notification-state to avoid failing CI - run ferdi build on latest macos and windows - skip husky in CI builds - move 'cld' and 'node-mac-permissions' to optionalDependency Co-authored-by: Vijay A --- src/webview/recipe.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/webview/recipe.js') diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 92c1ee2f0..70241419a 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js @@ -436,6 +436,9 @@ class RecipeController { const locale = await ipcRenderer.invoke('detect-language', { sample: value, }); + if (!locale) { + return; + } const spellcheckerLocale = getSpellcheckerLocaleByFuzzyIdentifier(locale); -- cgit v1.2.3-54-g00ecf