From 13a5192995b6fd90ec3cd3a022372e7299db5dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Sat, 28 Nov 2020 19:36:39 +0100 Subject: [PATCH] Added a call to loadSpellCheckLanguages() method --- src/vector/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vector/index.ts b/src/vector/index.ts index a88c1d068d..be7a0824b0 100644 --- a/src/vector/index.ts +++ b/src/vector/index.ts @@ -95,6 +95,7 @@ async function start() { loadConfig, loadSkin, loadLanguage, + loadSpellCheckLanguages, loadTheme, loadApp, showError, @@ -138,12 +139,13 @@ async function start() { // Load language after loading config.json so that settingsDefaults.language can be applied const loadLanguagePromise = loadLanguage(); + const loadSpellCheckLanguagesPromise = loadSpellCheckLanguages(); // as quickly as we possibly can, set a default theme... const loadThemePromise = loadTheme(); const loadSkinPromise = loadSkin(); // await things settling so that any errors we have to render have features like i18n running - await settled(loadSkinPromise, loadThemePromise, loadLanguagePromise); + await settled(loadSkinPromise, loadThemePromise, loadLanguagePromise, loadSpellCheckLanguagesPromise); let acceptBrowser = supportedBrowser; if (!acceptBrowser && window.localStorage) { @@ -194,6 +196,7 @@ async function start() { await loadSkinPromise; await loadThemePromise; await loadLanguagePromise; + await loadSpellCheckLanguagesPromise; // Finally, load the app. All of the other react-sdk imports are in this file which causes the skinner to // run on the components.