Create comonent for collapsing menu entries
This commit is contained in:
@@ -40,7 +40,8 @@ export const update = async () => {
|
||||
siblings = await nav.get_siblings()
|
||||
|
||||
for(const sib of siblings) {
|
||||
if (sib.name === "cover.jpg") {
|
||||
const lower = sib.name.toLowerCase()
|
||||
if (lower === "cover.jpg" || lower === "cover.png" || lower === "cover.webp") {
|
||||
console.debug("Found album cover image", sib)
|
||||
background_div.style.backgroundImage = `url("/api/filesystem/${sib.path}")`
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user