Skip to content

Commit

Permalink
fix(background-window): fixes macos window creation on dock icon click (
Browse files Browse the repository at this point in the history
  • Loading branch information
2xAA authored May 7, 2023
1 parent 4453dd8 commit a4d2d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ app.on("window-all-closed", () => {
app.on("activate", async () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
createWindow("mainWindow");
createWindow({ windowName: "mainWindow" });
});

// https://stackoverflow.com/a/66673831
Expand Down

0 comments on commit a4d2d0b

Please sign in to comment.