Skip to content

Commit

Permalink
fix: Make suppressing no source error compatible with videojs-errors (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben authored and gkatsev committed Oct 4, 2019
1 parent c791cd8 commit 260cfcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 260cfcd

Please sign in to comment.