From 6a342bedc81cb48f53915109fad4e3b976f20c74 Mon Sep 17 00:00:00 2001 From: Markus Weigelt Date: Thu, 29 Feb 2024 14:12:23 +0100 Subject: [PATCH] Add semicolons to js --- .../resources/js/modules/media_detail_media_partial.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kitodo/src/main/webapp/WEB-INF/resources/js/modules/media_detail_media_partial.js b/Kitodo/src/main/webapp/WEB-INF/resources/js/modules/media_detail_media_partial.js index 0dcefe1e05e..ff4d4c60eee 100644 --- a/Kitodo/src/main/webapp/WEB-INF/resources/js/modules/media_detail_media_partial.js +++ b/Kitodo/src/main/webapp/WEB-INF/resources/js/modules/media_detail_media_partial.js @@ -27,10 +27,10 @@ let initMediaPartial = function () { let onCanPlay = function () { mediaElement.currentTime = startTime / 1000; - } + }; mediaElement.addEventListener("play", function () { - mediaElement.removeEventListener("canplay", onCanPlay) + mediaElement.removeEventListener("canplay", onCanPlay); mediaElement.currentTime = startTime / 1000; });