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,7 +355,9 @@ export function setSpellCheckLanguages(preferredLangs: string[]) {
export async function getAvailableSpellCheckLanguages(): Promise<string[]> { export async function getAvailableSpellCheckLanguages(): Promise<string[]> {
const plaf = PlatformPeg.get(); const plaf = PlatformPeg.get();
return plaf.getAvailableSpellCheckLanguages(); if (plaf) {
return plaf.getAvailableSpellCheckLanguages();
}
} }
export function getAllLanguagesFromJson() { export function getAllLanguagesFromJson() {