Skip to content

Commit 21e5576

Browse files
committed
(JS) verticalTabsPane:
fix the script not working when new tab button is removed from all customizable areas.
1 parent b13d7f1 commit 21e5576

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JS/verticalTabsPane.uc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Vertical Tabs Pane
3-
// @version 1.6.0
3+
// @version 1.6.1
44
// @author aminomancer
55
// @homepage https://github.com/aminomancer/uc.css.js
66
// @description Create a vertical pane across from the sidebar that functions like the vertical
@@ -187,7 +187,7 @@
187187
create(document, "toolbartabstop", { "aria-hidden": true })
188188
);
189189
this.newTabButton = this.buttonsRow.appendChild(
190-
document.getElementById("new-tab-button").cloneNode(true)
190+
CustomizableUI.getWidget("new-tab-button").forWindow(window).node.cloneNode(true)
191191
);
192192
this.newTabButton.id = "vertical-tabs-new-tab-button";
193193
this.newTabButton.setAttribute("flex", "1");

0 commit comments

Comments
 (0)