Skip to content

Commit

Permalink
root.VTTCue should fall back to VVTCue if not set
Browse files Browse the repository at this point in the history
VTTCue is never null so it always fell back, which doesn't work on some browsers.
  • Loading branch information
coolheinze committed Sep 27, 2016
1 parent 70189e5 commit e742965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vttcue.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,5 +304,5 @@
return WebVTT.convertCueToDOMTree(window, this.text);
};

root.VTTCue = VTTCue || root.VTTCue;
root.VTTCue = root.VTTCue || VTTCue;
}(this));

0 comments on commit e742965

Please sign in to comment.