Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
maltheism committed Jun 11, 2022
1 parent c487ec9 commit 5a9b0bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/eeg2bidsService.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {execFile} = require('child_process');
const {execFile, spawn} = require('child_process');

/**
* EEG2BIDS Wizard Service
Expand All @@ -24,7 +24,9 @@ module.exports = class EEG2BIDSService {
'dist/eeg2bids-service-windows.exe' :
'dist/eeg2bids-service.app/Contents/MacOS/eeg2bids-service',
);
this.process = execFile(pathToService);
this.process = this.platform === 'win32' ?
execFile(pathToService) :
spawn(pathToService);
}

/**
Expand Down

0 comments on commit 5a9b0bd

Please sign in to comment.