From 078e617cc85a62b0cb0e29eed6856d54843e4a25 Mon Sep 17 00:00:00 2001 From: "mr. M" Date: Wed, 30 Oct 2024 18:18:45 +0100 Subject: [PATCH] Refactor ZenWorkspaces.mjs to remove unnecessary attribute in workspace creation --- src/ZenWorkspaces.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ZenWorkspaces.mjs b/src/ZenWorkspaces.mjs index 7ce030d..adbbad9 100644 --- a/src/ZenWorkspaces.mjs +++ b/src/ZenWorkspaces.mjs @@ -276,7 +276,6 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature { this._workspaceCreateInput.textContent = ''; this._workspaceCreateInput.value = ''; this._workspaceCreateInput.setAttribute('data-initial-value', ''); - this._workspaceCreateIconsContainer.setAttribute('data-initial-value', icon); document.querySelectorAll('#PanelUI-zen-workspaces-icon-picker-wrapper toolbarbutton').forEach((button) => { if (button.label === icon) { button.setAttribute('selected', 'true');