Merge branch 'feature-multi-language-spell-check' of https://github.com/SimonBrandner/element-desktop into feature-multi-language-spell-check

This commit is contained in:
Šimon Brandner 2021-02-18 18:30:37 +01:00
commit 48d66c0031
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -386,7 +386,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
}
break;
case 'setSpellCheckLanguages':
if (args[0] && args[0] != []) {
if (args[0] && args[0].length > 0) {
mainWindow.webContents.session.setSpellCheckerLanguages(args[0]);
} else {
mainWindow.webContents.session.spellcheck = false;