mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(menu) rm mute: has no sense with new ponse headers
This commit is contained in:
parent
18111aa744
commit
139a91b094
1 changed files with 0 additions and 17 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue