mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 05:39:57 +02:00
Refactor ZenWorkspaces to add attributes to newWorkspacesButton
This commit is contained in:
parent
1d5e336462
commit
20c2fc640f
1 changed files with 2 additions and 0 deletions
|
@ -375,6 +375,8 @@ var ZenWorkspaces = {
|
||||||
let workspaceList = document.getElementById('zen-workspaces-button');
|
let workspaceList = document.getElementById('zen-workspaces-button');
|
||||||
const newWorkspacesButton = document.createXULElement(this.shouldShowIconStrip ? 'hbox' : 'toolbarbutton');
|
const newWorkspacesButton = document.createXULElement(this.shouldShowIconStrip ? 'hbox' : 'toolbarbutton');
|
||||||
newWorkspacesButton.id = 'zen-workspaces-button';
|
newWorkspacesButton.id = 'zen-workspaces-button';
|
||||||
|
newWorkspacesButton.setAttribute('removable', 'false');
|
||||||
|
newWorkspacesButton.setAttribute('showInPrivateBrowsing', 'false');
|
||||||
newWorkspacesButton.setAttribute('tooltiptext', 'Workspaces');
|
newWorkspacesButton.setAttribute('tooltiptext', 'Workspaces');
|
||||||
|
|
||||||
if (this.shouldShowIconStrip) {
|
if (this.shouldShowIconStrip) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue