Commit bde64997 authored by Laura Kalbag's avatar Laura Kalbag

Fix typo

parent f17e0b45
......@@ -45,6 +45,7 @@ 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");
......@@ -557,7 +558,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") || this.activeCues[0].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