Skip to content

Commit

Permalink
Adjust event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
LostKobrakai committed Dec 21, 2024
1 parent 366252c commit 9ac686c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions assets/js/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@ document.querySelectorAll("media-player").forEach((player) => {
bold.trackEvent(video, evt);
};

const handleTimeUpdateEvent = (_evt, nativeEvt) => {
bold.trackEvent(video, nativeEvt);
};

player.addEventListener("play", handleEvent);
player.addEventListener("pause", handleEvent);
player.addEventListener("loaded-metadata", handleEvent);
player.addEventListener("time-update", handleTimeUpdateEvent);
player.addEventListener("time-update", handleEvent);
});

0 comments on commit 9ac686c

Please sign in to comment.