Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-03-17 05:59:33 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-03-25 10:10:54 +0400
commit771eb189312ea578ff2b4763dc86c197b8906f74 (patch)
tree84f78daaec270aacddceb5a450c1638f2a6e8c88 /bin
parent260a32f1d39493aadb77105a2529111e4624d1e9 (diff)
code style
Diffstat (limited to 'bin')
-rwxr-xr-xbin/start.js10
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')
-})