Skip to content

Commit

Permalink
Fix fp reference
Browse files Browse the repository at this point in the history
  • Loading branch information
HieronymusLex authored Oct 19, 2020
1 parent be81f09 commit 7b2aba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/desktop/public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ if (!app.requestSingleInstanceLock()) {
if (appWindow.isMinimized()) appWindow.restore();
appWindow.focus();
let args = argv.slice(isDev ? 2 : 1);
let files = args.filter(el => {
return el.substring(0, 2) !== '--' && hasValidExtension(fp) && fs.existsSync(el);
let files = args.filter(fp => {
return fp.substring(0, 2) !== '--' && hasValidExtension(fp) && fs.existsSync(fp);
});
!isMac && files.forEach(handleRange);
}
Expand Down

0 comments on commit 7b2aba4

Please sign in to comment.