Merge pull request #267 from EdouardVanbelle/fix/inlineviewer-stop-media-on-close

This commit is contained in:
Dionisio Pozo
2026-04-07 18:49:01 +02:00
committed by GitHub
+4
View File
@@ -502,6 +502,10 @@ class InlineViewer {
// Get modal
const modal = document.getElementById('inline-viewer-modal');
// stops audio/video before closing viewver
const media = modal.querySelector('audio, video');
if (media && !media.paused) media.pause();
// Hide modal
modal.classList.remove('active');