Remove the autoplay attribute from videos if they have it. Fixes #2973
This commit is contained in:
parent
7b3a8ba0e1
commit
458f918c4d
@ -72,6 +72,7 @@ function inlineVideos() {
|
|||||||
element.setAttribute("playsinline", true);
|
element.setAttribute("playsinline", true);
|
||||||
if (!element.classList.contains("nnwAnimatedGIF")) {
|
if (!element.classList.contains("nnwAnimatedGIF")) {
|
||||||
element.setAttribute("controls", true);
|
element.setAttribute("controls", true);
|
||||||
|
element.removeAttribute("autoplay");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user