Added a call to loadSpellCheckLanguages() method
This commit is contained in:
parent
7ae86af7df
commit
13a5192995
1 changed files with 4 additions and 1 deletions
|
@ -95,6 +95,7 @@ async function start() {
|
||||||
loadConfig,
|
loadConfig,
|
||||||
loadSkin,
|
loadSkin,
|
||||||
loadLanguage,
|
loadLanguage,
|
||||||
|
loadSpellCheckLanguages,
|
||||||
loadTheme,
|
loadTheme,
|
||||||
loadApp,
|
loadApp,
|
||||||
showError,
|
showError,
|
||||||
|
@ -138,12 +139,13 @@ async function start() {
|
||||||
|
|
||||||
// Load language after loading config.json so that settingsDefaults.language can be applied
|
// Load language after loading config.json so that settingsDefaults.language can be applied
|
||||||
const loadLanguagePromise = loadLanguage();
|
const loadLanguagePromise = loadLanguage();
|
||||||
|
const loadSpellCheckLanguagesPromise = loadSpellCheckLanguages();
|
||||||
// as quickly as we possibly can, set a default theme...
|
// as quickly as we possibly can, set a default theme...
|
||||||
const loadThemePromise = loadTheme();
|
const loadThemePromise = loadTheme();
|
||||||
const loadSkinPromise = loadSkin();
|
const loadSkinPromise = loadSkin();
|
||||||
|
|
||||||
// await things settling so that any errors we have to render have features like i18n running
|
// 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;
|
let acceptBrowser = supportedBrowser;
|
||||||
if (!acceptBrowser && window.localStorage) {
|
if (!acceptBrowser && window.localStorage) {
|
||||||
|
@ -194,6 +196,7 @@ async function start() {
|
||||||
await loadSkinPromise;
|
await loadSkinPromise;
|
||||||
await loadThemePromise;
|
await loadThemePromise;
|
||||||
await loadLanguagePromise;
|
await loadLanguagePromise;
|
||||||
|
await loadSpellCheckLanguagesPromise;
|
||||||
|
|
||||||
// Finally, load the app. All of the other react-sdk imports are in this file which causes the skinner to
|
// Finally, load the app. All of the other react-sdk imports are in this file which causes the skinner to
|
||||||
// run on the components.
|
// run on the components.
|
||||||
|
|
Loading…
Reference in a new issue