diff --git a/frontend/app.js b/frontend/app.js index eeb4630..93109af 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -3207,15 +3207,15 @@ const header = document.createElement("div"); header.className = "dashboard-card-header"; - const icon = document.createElement("div"); - icon.className = "dashboard-card-icon"; + const iconContainer = document.createElement("div"); + iconContainer.className = "dashboard-card-icon"; const fileIconName = getFileIcon(file.path); try { - icon.appendChild(icon(fileIconName, 24)); + iconContainer.appendChild(icon(fileIconName, 24)); } catch (e) { console.error("Error creating icon:", fileIconName, e); // Fallback to default file icon - icon.appendChild(icon("file", 24)); + iconContainer.appendChild(icon("file", 24)); } const badge = document.createElement("span"); @@ -3232,7 +3232,7 @@ this.toggleBookmark(file.vault, file.path, file.title, card); }); - header.appendChild(icon); + header.appendChild(iconContainer); header.appendChild(badge); header.appendChild(bookmarkBtn); card.appendChild(header);