Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Fix open with on macOS
Browse files Browse the repository at this point in the history
Not tested yet
  • Loading branch information
krzysdz committed May 16, 2018
1 parent 4050cf2 commit 3851373
Show file tree
Hide file tree
Showing 3 changed files with 309 additions and 179 deletions.
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ function createWindow () {
});
}

app.on("open-file", (e, p) => {
e.preventDefault();
process.argv.push(p);
});

// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
Expand Down
Loading

0 comments on commit 3851373

Please sign in to comment.