Skip to content

Commit

Permalink
addresses issue #9 (command line parameter is meant to be file, so we…
Browse files Browse the repository at this point in the history
… filter out directory)
  • Loading branch information
danielweck committed Sep 25, 2018
1 parent 3a3e325 commit e5f2310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ app.on("ready", () => {
}
}

if (filePathToLoadOnLaunch) {
if (filePathToLoadOnLaunch && !fs.lstatSync(filePathToLoadOnLaunch).isDirectory()) {
await openFileDownload(filePathToLoadOnLaunch);
return;
}
Expand Down

0 comments on commit e5f2310

Please sign in to comment.