hide error message in https too (#108)

This commit is contained in:
Adam Magnier 2017-10-26 07:46:15 +02:00 committed by Bigard Florian
parent b9a20e5947
commit 8113a93a0d
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ const peertubePlugin = function (options: PeertubePluginOptions) {
player.torrent.on('error', err => handleError(err))
player.torrent.on('warning', err => {
// We don't support HTTP tracker but we don't care -> we use the web socket tracker
if (err.message.indexOf('Unsupported tracker protocol: http://') !== -1) return
if (err.message.indexOf('Unsupported tracker protocol: http') !== -1) return
return handleError(err)
})