Skip to content

Commit

Permalink
refactor: remove no-longer-needed workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
AviVahl committed Aug 27, 2024
1 parent f70fe17 commit 284d221
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,10 @@ async function createWindow() {
webPreferences: {
preload: fileURLToPath(new URL("preload.cjs", import.meta.url)),
},
// hide the window until the content is loaded (to not see a white background flash)
// `show: false` causes win.maximize() to not work on Linux
width: 0,
height: 0,
width: 1024,
height: 768,
});
await win.loadFile(fileURLToPath(new URL("index.html", import.meta.url)));
win.setBounds({ width: 1024, height: 768 });
win.center();
}

function focusOnFirstWindow() {
Expand Down

0 comments on commit 284d221

Please sign in to comment.