fix(sidebar): analytics not showing when disabled

This commit is contained in:
2026-06-22 23:10:49 +09:30
parent fadc06aa27
commit 5df9169705
5 changed files with 204 additions and 62 deletions
+3 -1
View File
@@ -25,7 +25,9 @@ function mergeMenuItemsFromDom(): Record<string, { toggle: boolean }> {
}
function storeMenuSettings(): void {
const menuItems: Record<string, { toggle: boolean }> = {};
const menuItems: Record<string, { toggle: boolean }> = {
...(settingsState.menuitems as Record<string, { toggle: boolean }>),
};
const inputs = document.querySelectorAll<HTMLInputElement>(".menuitem");
for (const input of inputs) {
if (input.id) {