mirror of
https://github.com/element-hq/element-desktop.git
synced 2025-12-05 01:10:21 +00:00
Wait for Electron to be ready before we fire syntax error dialog (#2659)
This commit is contained in:
committed by
GitHub
parent
3c3b1d9ad3
commit
ac3ccf47a3
@@ -211,6 +211,7 @@ function loadConfig(): Promise<void> {
|
||||
global.vectorConfig = Object.assign(global.vectorConfig, localConfig);
|
||||
} catch (e) {
|
||||
if (e instanceof SyntaxError) {
|
||||
await app.whenReady();
|
||||
void dialog.showMessageBox({
|
||||
type: "error",
|
||||
title: `Your ${global.vectorConfig.brand || "Element"} is misconfigured`,
|
||||
|
||||
Reference in New Issue
Block a user