Refactor ZenWorkspaces to add attributes to newWorkspacesButton

This commit is contained in:
mauro-balades 2024-09-20 09:59:55 +02:00
parent 1d5e336462
commit 20c2fc640f

View file

@ -375,6 +375,8 @@ var ZenWorkspaces = {
let workspaceList = document.getElementById('zen-workspaces-button');
const newWorkspacesButton = document.createXULElement(this.shouldShowIconStrip ? 'hbox' : 'toolbarbutton');
newWorkspacesButton.id = 'zen-workspaces-button';
newWorkspacesButton.setAttribute('removable', 'false');
newWorkspacesButton.setAttribute('showInPrivateBrowsing', 'false');
newWorkspacesButton.setAttribute('tooltiptext', 'Workspaces');
if (this.shouldShowIconStrip) {