From: Adam Magnier Date: Thu, 26 Oct 2017 05:46:15 +0000 (+0200) Subject: hide error message in https too (#108) X-Git-Tag: v0.0.1-alpha~275 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=8113a93a0d9f31aa9e23702bbc31b8a76275ae22;p=github%2FChocobozzz%2FPeerTube.git hide error message in https too (#108) --- diff --git a/client/src/assets/player/peertube-videojs-plugin.ts b/client/src/assets/player/peertube-videojs-plugin.ts index 19490baf2..30ef7c49c 100644 --- a/client/src/assets/player/peertube-videojs-plugin.ts +++ b/client/src/assets/player/peertube-videojs-plugin.ts @@ -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) })