Remove the autoplay attribute from videos if they have it. Fixes #2973

This commit is contained in:
Maurice Parker 2021-04-08 09:08:19 -05:00
parent 7b3a8ba0e1
commit 458f918c4d

View File

@ -72,6 +72,7 @@ function inlineVideos() {
element.setAttribute("playsinline", true);
if (!element.classList.contains("nnwAnimatedGIF")) {
element.setAttribute("controls", true);
element.removeAttribute("autoplay");
}
});
}