1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

@ntadej added a null check to errorDisplay usage. closes #3440

This commit is contained in:
Tadej Novak 2016-07-19 11:27:12 -04:00 committed by Gary Katsevman
parent b557695e5a
commit 4b4954ef4d
2 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,7 @@ CHANGELOG
* @rbran100 checked src and currentSrc in handleTechReady to work around mixed content issues in chrome ([view](https://github.com/videojs/video.js/pull/3287))
* @OwenEdwards fixed caption settings dialog labels for accessibility ([view](https://github.com/videojs/video.js/pull/3281))
* @OwenEdwards removed spurious head tags in the simple-embed example ([view](https://github.com/videojs/video.js/pull/3438))
* @ntadej added a null check to errorDisplay usage ([view](https://github.com/videojs/video.js/pull/3440))
--------------------

View File

@ -2270,7 +2270,9 @@ class Player extends Component {
if (err === null) {
this.error_ = err;
this.removeClass('vjs-error');
this.errorDisplay.close();
if (this.errorDisplay) {
this.errorDisplay.close();
}
return this;
}