mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-19 04:31:36 +00:00
Remove unneeded parenthesis
This commit is contained in:
parent
3d84d44abc
commit
0133c96d22
@ -86,7 +86,7 @@ function Client (peerId, port, torrent, opts) {
|
|||||||
return new HTTPTracker(self, announceUrl)
|
return new HTTPTracker(self, announceUrl)
|
||||||
} else if (protocol === 'udp:' && typeof UDPTracker === 'function') {
|
} else if (protocol === 'udp:' && typeof UDPTracker === 'function') {
|
||||||
return new UDPTracker(self, announceUrl)
|
return new UDPTracker(self, announceUrl)
|
||||||
} else if (((protocol === 'ws:') || protocol === 'wss:') && webrtcSupport) {
|
} else if ((protocol === 'ws:' || protocol === 'wss:') && webrtcSupport) {
|
||||||
// Don't try to add http tracker on an https website
|
// Don't try to add http tracker on an https website
|
||||||
if (protocol === 'ws:' && location && location.protocol && location.protocol === 'https:') {
|
if (protocol === 'ws:' && location && location.protocol && location.protocol === 'https:') {
|
||||||
process.nextTick(function () {
|
process.nextTick(function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user