diff --git a/client/modules/menu.js b/client/modules/menu.js index ec1d136b..ff9b405c 100644 --- a/client/modules/menu.js +++ b/client/modules/menu.js @@ -295,8 +295,6 @@ function download(type) { src, }); - mute(element); - const {body} = document; const removeChild = body.removeChild.bind(body, element); @@ -307,21 +305,6 @@ function download(type) { } } -// prevent firefox from auto play -function mute(element) { - element.contentWindow.addEventListener('load', () => { - const video = element.contentWindow - .document - .body - .querySelector('audio, video'); - - if (!video) - return; - - video.pause(); - }); -} - function getCurrentPosition() { const current = Info.element; const rect = current.getBoundingClientRect();