Fix javascript syntax error

This commit is contained in:
Maurice Parker 2020-10-30 17:25:25 -05:00
parent 0b4fb4250a
commit f7d5cf4f58

View File

@ -52,9 +52,9 @@ function wrapTables() {
// on an iphone when viewing an article. // on an iphone when viewing an article.
function inlineVideos() { function inlineVideos() {
document.querySelectorAll("video").forEach(element => { document.querySelectorAll("video").forEach(element => {
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);
} }
}); });
} }