mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 12:31:31 +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,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) => {
|
||||
|
|
Loading…
Reference in a new issue