Answer stability round 1: 1 🔴, 3 🟡 (0 misread); scope the visual selector, check label and cover the gaps

This commit is contained in:
2026-11-08 19:25:57 +01:00
parent 6767a5d7bd
commit 523e8b3724
6 changed files with 11 additions and 6 deletions
+1
View File
@@ -195,6 +195,7 @@ function findProfileMenuError(entries: PluginManifest["profileMenu"]): string |
for (const entry of Array.isArray(entries) ? entries : []) {
const what = `profile-menu entry "${entry?.label ?? "?"}"`;
if (typeof entry?.href !== "string" || entry.href === "") return `${what} needs an href`;
if (typeof entry.label !== "string" || entry.label === "") return `${what} needs a label`;
const err = gateError(what, entry);
if (err) return err;
}