pull/1/head
Jan Umbach 2024-05-29 23:26:32 +02:00
parent ed6a95c211
commit 3c7c177177
1 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,8 @@ function focusVisiblePolyfill() {
}
function pauseAllMedia() {
console.log('Pausing all media');
document.querySelectorAll('.js-youtube').forEach((video) => {
video.contentWindow.postMessage('{"event":"command","func":"' + 'pauseVideo' + '","args":""}', '*');
});