From a04f1c076446e5634e4cde59ec1b5adc8cda8ffb Mon Sep 17 00:00:00 2001 From: Stefan Breunig <307954+breunigs@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:41:06 +0200 Subject: [PATCH] missing null check for video end action --- assets/js/video_player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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