From af448cac3dfc97b04fda2a5a5c0369b3585d8fe8 Mon Sep 17 00:00:00 2001 From: Agampreet Singh <68941022+agam778@users.noreply.github.com> Date: Wed, 8 May 2024 00:46:02 +0530 Subject: [PATCH] Override height and width of every new window created --- app/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.js b/app/main.js index 32093fc..204495c 100644 --- a/app/main.js +++ b/app/main.js @@ -155,7 +155,7 @@ app.on("web-contents-created", (event, contents) => { `On "${BrowserWindow.getFocusedWindow().webContents.getTitle()}"` ); } - return { action: "allow" }; + return { action: "allow", overrideBrowserWindowOptions: { width: 1081, height: 610 } }; } }); contents.on("did-finish-load", () => {