mirror of
https://github.com/vector-im/element-desktop.git
synced 2024-09-09 22:05:10 +00:00
Update src/electron-main.js
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
parent
62b6aa26ff
commit
f51acb78e0
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'setSpellCheckLanguages':
|
case 'setSpellCheckLanguages':
|
||||||
if (args[0] && args[0] != []) {
|
if (args[0] && args[0].length > 0) {
|
||||||
mainWindow.webContents.session.setSpellCheckerLanguages(args[0]);
|
mainWindow.webContents.session.setSpellCheckerLanguages(args[0]);
|
||||||
} else {
|
} else {
|
||||||
mainWindow.webContents.session.spellcheck = false;
|
mainWindow.webContents.session.spellcheck = false;
|
||||||
|
|
Loading…
Reference in a new issue