Change requested
This commit is contained in:
parent
12da5e64f8
commit
95d8cf9257
7 changed files with 14 additions and 14 deletions
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue