Skip to content

Commit

Permalink
Add check if sub-button-container exist and then set opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBearPresident authored Dec 6, 2024
1 parent ffe3777 commit 5c23842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cards/media-player/changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function changeVolumeIcon(context) {
context.elements.volumeButton.setAttribute("icon", newIcon);
context.elements.mediaInfoContainer.style.opacity = newOpacity;
context.elements.nameContainer.style.opacity = newOpacity;
context.elements.subButtonContainer.style.opacity = newOpacity;
if(context.elements.subButtonContainer)context.elements.subButtonContainer.style.opacity = newOpacity;
context.elements.previousButton.style.opacity = newOpacity;
context.elements.nextButton.style.opacity = newOpacity;
context.elements.powerButton.style.opacity = newOpacity;
Expand Down Expand Up @@ -242,4 +242,4 @@ export function changeStyle(context) {
if (context.elements.customStyle) {
context.elements.customStyle.innerText = customStyle;
}
}
}

0 comments on commit 5c23842

Please sign in to comment.