mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-17 00:22:20 +03:00
Added in if statement
This commit is contained in:
parent
fa19adcfe0
commit
b8008b5f19
1 changed files with 3 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue