Use local variables

This commit is contained in:
Fierelier 2021-03-16 17:03:38 +00:00
parent 256a6ca3b4
commit 0de7b78ca1
1 changed files with 4 additions and 4 deletions

View File

@ -19,12 +19,12 @@ function addGlobalStyle(css) {
head.appendChild(style);
}
addControls = function()
var addControls = function()
{
elements = document.getElementsByClassName("html5-main-video")
index = 0
var elements = document.getElementsByClassName("html5-main-video")
var index = 0
for (index = 0; index < elements.length; index++) {
element = elements[index]
var element = elements[index]
if (element.getAttribute("controls") == null) {
element.setAttribute("controls","")
}