aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/standalone/videos/embed.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-18 10:43:47 +0200
committerChocobozzz <me@florianbigard.com>2021-08-18 10:44:16 +0200
commite5a818d3cb2c33f52715ace50e580ee899c9da94 (patch)
tree9b956fb0e300d840a10e457c119f62ec482923ff /client/src/standalone/videos/embed.ts
parent33a53638c2b7a41a4e39558582f604d3036d4fa3 (diff)
downloadPeerTube-e5a818d3cb2c33f52715ace50e580ee899c9da94.tar.gz
PeerTube-e5a818d3cb2c33f52715ace50e580ee899c9da94.tar.zst
PeerTube-e5a818d3cb2c33f52715ace50e580ee899c9da94.zip
Speed up client lint
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r--client/src/standalone/videos/embed.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index dad717108..f35f4a23a 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -657,7 +657,7 @@ export class PeerTubeEmbed {
657 } 657 }
658 658
659 private handleError (err: Error, translations?: { [ id: string ]: string }) { 659 private handleError (err: Error, translations?: { [ id: string ]: string }) {
660 if (err.message.indexOf('from xs param') !== -1) { 660 if (err.message.includes('from xs param')) {
661 this.player.dispose() 661 this.player.dispose()
662 this.playerElement = null 662 this.playerElement = null
663 this.displayError('This video is not available because the remote instance is not responding.', translations) 663 this.displayError('This video is not available because the remote instance is not responding.', translations)