Skip to content

Commit

Permalink
fix undefined player dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Jul 26, 2021
1 parent 191c2fc commit 5a87ca7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/configuration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ QUnit.module('Configuration - Options', {
this.env.restore();
videojs.Vhs.supportsNativeHls = this.old.NativeHlsSupport;

this.player.dispose();
if (this.player) {
this.player.dispose();
}
videojs.options.vhs = {};

}
Expand Down

0 comments on commit 5a87ca7

Please sign in to comment.