Fix javascript syntax error
This commit is contained in:
parent
0b4fb4250a
commit
f7d5cf4f58
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue