feat: custom shortcut icons #258

This commit is contained in:
SethBurkart123
2025-06-04 21:42:32 +10:00
parent 3821034a5c
commit bf01c0ca7b
3 changed files with 102 additions and 26 deletions
@@ -10,7 +10,7 @@ export function RemoveShortcutDiv(elements: any) {
const textElement = shortcut.querySelector("p"); // <p> is a direct child of .shortcut
const title = textElement ? textElement.textContent : "";
const elementName = links[element.name as keyof typeof links].DisplayName || element.name;
const elementName = links[element.name as keyof typeof links]?.DisplayName || element.name;
let shouldRemove = title === elementName;