From 0c2f7527d7ad631a4eaacbddd3991cda309094fb Mon Sep 17 00:00:00 2001 From: Eric Link Date: Sun, 5 May 2019 12:46:33 -0500 Subject: [PATCH] finder arg processing update --- package-lock.json | 2 +- package.json | 2 +- src/main.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 759bda3..c707626 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mdp", - "version": "0.0.7", + "version": "0.0.8", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f068e1a..8e43768 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/main.js b/src/main.js index 9a4ae42..a43350d 100644 --- a/src/main.js +++ b/src/main.js @@ -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);