]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/assets/player/peertube-videojs-plugin.ts
hide error message in https too (#108)
[github/Chocobozzz/PeerTube.git] / client / src / assets / player / peertube-videojs-plugin.ts
index 19490baf2b805039b7691460ffe99c67a41bf358..30ef7c49c635f6e190e6ccf09e8ca8a0b6e9690f 100644 (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)
     })