Change requested

This commit is contained in:
GRL 2021-06-23 14:54:06 +02:00
parent 12da5e64f8
commit 95d8cf9257
7 changed files with 14 additions and 14 deletions

View file

@ -432,15 +432,15 @@ export class MediaManager {
}
element.classList.add('active');
element.childNodes.forEach((value: ChildNode, index) => {
const elementChildre = element.children.item(index);
if (!elementChildre) {
const elementChildren = element.children.item(index);
if (!elementChildren) {
return;
}
elementChildre.classList.remove('active');
elementChildren.classList.remove('active');
if ((index + 1) > volume) {
return;
}
elementChildre.classList.add('active');
elementChildren.classList.add('active');
});
}