diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-03-17 05:59:33 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-03-25 10:10:54 +0400 |
commit | 771eb189312ea578ff2b4763dc86c197b8906f74 (patch) | |
tree | 84f78daaec270aacddceb5a450c1638f2a6e8c88 /bin | |
parent | 260a32f1d39493aadb77105a2529111e4624d1e9 (diff) |
code style
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/start.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/bin/start.js b/bin/start.js index f1a3c71..3aef9bf 100755 --- a/bin/start.js +++ b/bin/start.js @@ -2,13 +2,9 @@ var cp = require('child_process') -var BIN = process.platform=='linux' ? '/bin/google-chrome' : '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary'; +var BIN = process.platform === 'linux' + ? '/bin/google-chrome' + : '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary' var ARGS = ['--load-and-launch-app=chrome'] var child = cp.spawn(BIN, ARGS) - -// Nodemon is trying to kill us, so kill Chrome -process.once('SIGUSR2', function () { - child.kill() - process.kill(process.pid, 'SIGUSR2') -}) |