From a7925763a874126fa3f65378af01540c069863ea Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Thu, 21 Jan 2021 23:28:46 +0100 Subject: [PATCH] fix: Solving the video still playing on close window. --- themes/new_look_default/public/src/view/video_container.js | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/new_look_default/public/src/view/video_container.js b/themes/new_look_default/public/src/view/video_container.js index 99caaa6..d29f4b5 100644 --- a/themes/new_look_default/public/src/view/video_container.js +++ b/themes/new_look_default/public/src/view/video_container.js @@ -10,6 +10,7 @@ class VideoContainer { if (option) { this.element.classList.add('active'); } else { + this.video.pause(); this.element.classList.remove('active'); this.downloadVideoPrepare.classList.add('active'); this.downloadVideoLoading.classList.remove('active');