1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-10 04:25:31 +02:00

Hide toolbar buttons and workspace indicator in specific conditions

This commit is contained in:
mr. M 2024-11-10 18:04:47 +01:00
parent ded9ee3251
commit 056de6fc13
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 3 additions and 1 deletions

View file

@ -83,11 +83,12 @@ export var ZenCustomizableUI = new (class {
}
_hideToolbarButtons(window) {
const wrapper = window.document.getElementById('zen-sidebar-icons-wrapper');
const elementsToHide = ['alltabs-button', 'new-tab-button'];
for (let id of elementsToHide) {
const elem = window.document.getElementById(id);
if (elem) {
elem.setAttribute('hidden', 'true');
wrapper.prepend(elem);
}
}
}