Skip to content

Commit

Permalink
Prevents default action
Browse files Browse the repository at this point in the history
  • Loading branch information
digimezzo committed Sep 2, 2024
1 parent 2fb43ca commit 3a76120
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ try {
if (mainWindow) {
// On Mac, the path of a double-clicked file is not passed as argument. Instead, it is passed as open-file event.
// https://stackoverflow.com/questions/50935292/argv1-returns-unexpected-value-when-i-open-a-file-on-double-click-in-electron
event.preventDefault();
mainWindow.webContents.send('arguments-received', path);
}
});
Expand Down

0 comments on commit 3a76120

Please sign in to comment.