diff --git a/assets/js/video_player.js b/assets/js/video_player.js index a26c45d3..16e524a2 100644 --- a/assets/js/video_player.js +++ b/assets/js/video_player.js @@ -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