Fixed an issue that would cause an empty media label to render when none were active. (#412)
This commit is contained in:
@@ -63,7 +63,8 @@ export const generateMediaLabel = (
|
||||
|
||||
const mediaLabel =
|
||||
truncation_size.value > 0 ? truncatedLabel.substring(0, truncation_size.value) : truncatedLabel;
|
||||
return mediaLabel;
|
||||
|
||||
return mediaLabel.length ? mediaLabel : 'Media';
|
||||
} else {
|
||||
songIcon.value = getIconForPlayer(activePlayer.value?.identity || '');
|
||||
return `Media`;
|
||||
|
||||
Reference in New Issue
Block a user