mirror of
https://github.com/videojs/video.js.git
synced 2024-11-28 08:58:46 +02:00
fix: Make suppressing no source error compatible with videojs-errors (#6217)
This commit is contained in:
parent
c791cd8c4e
commit
260cfcd247
@ -3708,8 +3708,7 @@ class Player extends Component {
|
||||
// Suppress the first error message for no compatible source until
|
||||
// user interaction
|
||||
if (this.options_.suppressNotSupportedError &&
|
||||
err && err.message &&
|
||||
err.message === this.localize(this.options_.notSupportedMessage)
|
||||
err && err.code === 4
|
||||
) {
|
||||
const triggerSuppressedError = function() {
|
||||
this.error(err);
|
||||
|
Loading…
Reference in New Issue
Block a user