Skip to content

Commit

Permalink
finder arg processing update
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Link committed May 5, 2019
1 parent ed567ce commit 0c2f752
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdp",
"version": "0.0.7",
"version": "0.0.8",
"license": "Apache-2.0",
"repository": "https://github.com/ericlink/mdp",
"productName": "mdp",
Expand Down
3 changes: 3 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const setGlobalFile = (file) => {
}

const processArgs = (argv) => {
// darwin is handled by open-file event, skip this
if (process.platform === 'darwin') return;

const lastArg = argv[argv.length-1];
if (argv && argv.length > 1 && lastArg !== './src/main.js') {
setGlobalFile(lastArg);
Expand Down

0 comments on commit 0c2f752

Please sign in to comment.