Wait for Electron to be ready before we fire syntax error dialog (#2659)
This commit is contained in:
@@ -211,6 +211,7 @@ function loadConfig(): Promise<void> {
|
|||||||
global.vectorConfig = Object.assign(global.vectorConfig, localConfig);
|
global.vectorConfig = Object.assign(global.vectorConfig, localConfig);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof SyntaxError) {
|
if (e instanceof SyntaxError) {
|
||||||
|
await app.whenReady();
|
||||||
void dialog.showMessageBox({
|
void dialog.showMessageBox({
|
||||||
type: "error",
|
type: "error",
|
||||||
title: `Your ${global.vectorConfig.brand || "Element"} is misconfigured`,
|
title: `Your ${global.vectorConfig.brand || "Element"} is misconfigured`,
|
||||||
|
|||||||
Reference in New Issue
Block a user