Fix javascript syntax error

This commit is contained in:
Maurice Parker 2020-10-30 17:25:25 -05:00
parent 0b4fb4250a
commit f7d5cf4f58
1 changed files with 3 additions and 3 deletions

View File

@ -52,9 +52,9 @@ function wrapTables() {
// on an iphone when viewing an article.
function inlineVideos() {
document.querySelectorAll("video").forEach(element => {
element.setAttribute("playsinline", true)
if !element.classList.contains("nnwAnimatedGIF") {
element.setAttribute("controls", true)
element.setAttribute("playsinline", true);
if (!element.classList.contains("nnwAnimatedGIF")) {
element.setAttribute("controls", true);
}
});
}