fix: failed lint check

This commit is contained in:
Ivan Schurawel 2022-10-19 21:20:18 -04:00 committed by Ivan Schurawel
parent 8fd9d83d8e
commit 49bae6b67c

View file

@ -581,7 +581,9 @@ function tryRemoveElement(elem) {
const trackElements = this.getTextTracks();
// if .vtt currently rendering
if (trackElements.length > 0) {
trackElements.forEach((trackElement, index) => this.setTextTrackSubtitleOffset(trackElement, offsetValue, index));
trackElements.forEach(function (trackElement, index) {
this.setTextTrackSubtitleOffset(trackElement, offsetValue, index);
});
} else if (this.#currentTrackEvents || this.#currentSecondaryTrackEvents) {
this.#currentTrackEvents && this.setTrackEventsSubtitleOffset(this.#currentTrackEvents, offsetValue, PRIMARY_TEXT_TRACK_INDEX);
this.#currentSecondaryTrackEvents && this.setTrackEventsSubtitleOffset(this.#currentSecondaryTrackEvents, offsetValue, SECONDARY_TEXT_TRACK_INDEX);