Skip to content

Commit

Permalink
fix: chapters innerHTML to innerText (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi authored Jul 9, 2024
1 parent 3c728c1 commit 124663f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/chapters/chapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const ChaptersPlugin = (function () {

this.chaptersTrack.addEventListener('cuechange', () => {
const activeCues = Array.from(this.chaptersTrack.activeCues); // Safari needs Array.from()
controlBarChapterHolder.innerHTML =
controlBarChapterHolder.innerText =
activeCues.length > 0 ? activeCues[0].text : '';
});
};
Expand Down Expand Up @@ -206,7 +206,7 @@ const ChaptersPlugin = (function () {
timeTooltip.update = function (seekBarRect, seekBarPoint, content) {
const originalUpdateFn = Object.getPrototypeOf(this).update;
originalUpdateFn.call(this, seekBarRect, seekBarPoint, content);
chapterEl.innerHTML = getChapterFromPoint(seekBarPoint);
chapterEl.innerText = getChapterFromPoint(seekBarPoint);
};

// Handle case of no seek-thumbnails
Expand Down

0 comments on commit 124663f

Please sign in to comment.