Refactor ZenStartup to update default placements for sidebar buttons and improve sidebar buttons customization

This commit is contained in:
mauro-balades
2024-09-20 14:23:49 +02:00
parent 1d220623ff
commit 37e8ee66bd
3 changed files with 12 additions and 5 deletions

View File

@@ -202,11 +202,11 @@
const defaultSidebarIcons = [
'zen-sidepanel-button',
'zen-workspaces-button',
'vertical-tabs-newtab-button'
'new-tab-button'
];
for (let id of defaultSidebarIcons) {
if (id === 'zen-workspaces-button') continue;
const elem = document.getElementById(id);
if (id === 'zen-workspaces-button' || !elem) continue;
elem.setAttribute('removable', 'true');
}
CustomizableUI.registerArea(