1
0
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:
mister-ben 2019-10-04 19:34:54 +02:00 committed by Gary Katsevman
parent c791cd8c4e
commit 260cfcd247

View File

@ -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);