Override height and width of every new window created
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user