mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 01:39:37 +02:00
Speed up client lint
This commit is contained in:
parent
33a53638c2
commit
e5a818d3cb
4 changed files with 12 additions and 5 deletions
|
@ -657,7 +657,7 @@ export class PeerTubeEmbed {
|
|||
}
|
||||
|
||||
private handleError (err: Error, translations?: { [ id: string ]: string }) {
|
||||
if (err.message.indexOf('from xs param') !== -1) {
|
||||
if (err.message.includes('from xs param')) {
|
||||
this.player.dispose()
|
||||
this.playerElement = null
|
||||
this.displayError('This video is not available because the remote instance is not responding.', translations)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue