Added in if statement

This commit is contained in:
Šimon Brandner 2020-12-03 11:50:20 +01:00
parent fa19adcfe0
commit b8008b5f19

View file

@ -355,8 +355,10 @@ export function setSpellCheckLanguages(preferredLangs: string[]) {
export async function getAvailableSpellCheckLanguages(): Promise<string[]> {
const plaf = PlatformPeg.get();
if (plaf) {
return plaf.getAvailableSpellCheckLanguages();
}
}
export function getAllLanguagesFromJson() {
return getLangsJson().then((langsObject) => {