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:
parent
ded9ee3251
commit
056de6fc13
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue