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
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-01-16 09:35:48 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-01-16 09:35:48 +0300
commit9f2fa48ef37fc3c62eec6cb612168ff25d2606bd (patch)
treea87f4361e857d7598083e38c2a7e6c2a731ffc81
parentac3bdfa101cee083ea53a5c00d7b1a0528f6b15f (diff)
code style
-rw-r--r--lib/file-stream.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/file-stream.js b/lib/file-stream.js
index 9ca77ce..2084ba1 100644
--- a/lib/file-stream.js
+++ b/lib/file-stream.js
@@ -99,7 +99,8 @@ FileStream.prototype.pipe = function (dst) {
var self = this
var pipe = stream.Readable.prototype.pipe
- if (dst && dst.nodeName === 'VIDEO' || dst.nodeName === 'AUDIO') { // <video> and <audio> tag
+ // <video> or <audio> tag
+ if (dst && (dst.nodeName === 'VIDEO' || dst.nodeName === 'AUDIO')) {
var type = self._extname === '.webm'
? 'video/webm; codecs="vorbis,vp8"'
: self._extname === '.mp4'