Commit 9b578ed1 authored by Laura Kalbag's avatar Laura Kalbag

Revert Chrome bug update as it breaks fullscreen button

parent bde64997
......@@ -45,7 +45,6 @@ function InitPxVideo(options) {
// Display captions container and button (for initialization)
function showCaptionContainerAndButton(obj) {
obj.captionsBtnContainer.className = "px-video-captions-btn-container show";
obj.captionsBtnContainer.parentNode.className = "px-video-captions-btn-container show";
if (obj.isCaptionDefault) {
obj.captionsContainer.className = "px-video-captions show";
obj.captionsBtn.setAttribute("checked", "checked");
......@@ -558,7 +557,7 @@ function InitPxVideo(options) {
if (track.kind === "captions") {
track.addEventListener("cuechange",function() {
if (this.activeCues[0]) {
if (this.activeCues[0].hasOwnProperty("text") || this.activeCues[0].text !== "") {
if (this.activeCues[0].hasOwnProperty("text")) {
obj.captionsContainer.innerHTML = this.activeCues[0].text;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment