feature(menu) rm mute: has no sense with new ponse headers

This commit is contained in:
coderaiser 2019-08-26 21:58:40 +03:00
parent 18111aa744
commit 139a91b094

View file

@ -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();