diff --git a/src/vector/platform/ElectronPlatform.js b/src/vector/platform/ElectronPlatform.js index 53269211..8e29542a 100644 --- a/src/vector/platform/ElectronPlatform.js +++ b/src/vector/platform/ElectronPlatform.js @@ -386,7 +386,10 @@ export default class ElectronPlatform extends VectorBasePlatform { return this.eventIndexManager; } - async setLanguage(preferredLangs: string[]): Promise { - return this._ipcCall('setLanguage', preferredLangs); + setLanguage(preferredLangs: string[]) { + this._ipcCall('setLanguage', preferredLangs).catch(error => { + console.log("Failed to send setLanguage IPC to Electron"); + console.error(error); + }); } }