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; });