From 139a91b094cddc598b073d16e0fbc917252dff26 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 26 Aug 2019 21:58:40 +0300 Subject: [PATCH] feature(menu) rm mute: has no sense with new ponse headers --- client/modules/menu.js | 17 ----------------- 1 file changed, 17 deletions(-) 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();