Remove duplicate function

This commit is contained in:
Idrees Hassan
2025-10-26 18:03:15 -04:00
parent fe497a4020
commit 938b139298
8 changed files with 92 additions and 155 deletions

View File

@@ -3,7 +3,8 @@ import {
makeElement,
onClick,
makeDraggable,
makeClosable
makeClosable,
error
} from './shared.js';
export const MENU_ID = "birb-menu";
@@ -124,7 +125,7 @@ export function switchMenuItems(menuItems, updateLocationCallback) {
}
const content = menu.querySelector(".birb-window-content");
if (!content) {
console.error("Birb: Content not found");
error("Birb: Content not found");
return;
}
content.innerHTML = "";