aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--static/modules/music.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/static/modules/music.js b/static/modules/music.js
index 5ba3386..e127969 100644
--- a/static/modules/music.js
+++ b/static/modules/music.js
@@ -97,6 +97,14 @@ export default {
el.querySelector(".art").replaceWith(img);
}
if (img.getAttribute("src") !== st.art) img.src = st.art;
+ } else {
+ const img = el.querySelector("img.art");
+ if (img) {
+ const empty = document.createElement("div");
+ empty.className = "art empty";
+ empty.textContent = "♪";
+ img.replaceWith(empty);
+ }
}
el.querySelector(".title").textContent = st.title || "Nothing playing";
el.querySelector(".artist").textContent = st.artist || "";