Skip to content

Commit

Permalink
missing null check for video end action
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Oct 9, 2024
1 parent 30c9339 commit a04f1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/video_player.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function maybeExecEndAction() {
autoplay = true
reverseVideo()
term = end
} else if (typeof end === "object" && end.action) {
} else if (typeof end === "object" && end && end.action) {
cacheVideoPoster()
window.pushEvent("video-ended", { action: end.action })
term = end.action
Expand Down

0 comments on commit a04f1c0

Please sign in to comment.