From 17ba0710574d4a71b97a86a713011fe74562f20e Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Wed, 11 Oct 2023 21:59:03 +0900 Subject: [PATCH] fix: crash before window loaded --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 9fc215bd..e8d6b78a 100644 --- a/index.ts +++ b/index.ts @@ -335,7 +335,7 @@ async function createMainWindow() { removeContentSecurityPolicy(); - await win.webContents.loadURL(urlToLoad); + win.webContents.loadURL(urlToLoad); return win; }