Skip to content

Commit

Permalink
fix:glawson#37 Flip recieved emit logic so it works on Linux as well
Browse files Browse the repository at this point in the history
  • Loading branch information
John Ouellet committed May 6, 2022
1 parent cc71924 commit 38558cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ class Deeplink extends EventEmitter {
return;
}

if (os.platform() === 'win32') {
this.emit('received', argv.slice(-1).join(''));
} else {
if (os.platform() === 'darwin') {
this.emit('received', ...argv);
} else {
this.emit('received', argv.slice(-1).join(''));
}

if (this.mainWindow) {
Expand Down

0 comments on commit 38558cd

Please sign in to comment.