diff --git a/src/cards/media-player/changes.ts b/src/cards/media-player/changes.ts index f9e0683f..55c78156 100644 --- a/src/cards/media-player/changes.ts +++ b/src/cards/media-player/changes.ts @@ -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; @@ -242,4 +242,4 @@ export function changeStyle(context) { if (context.elements.customStyle) { context.elements.customStyle.innerText = customStyle; } -} \ No newline at end of file +}