Skip to content

Commit

Permalink
(JS) verticalTabsPane:
Browse files Browse the repository at this point in the history
fix the script not working when new tab button
is removed from all customizable areas.
  • Loading branch information
aminomancer committed May 16, 2022
1 parent b13d7f1 commit 21e5576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JS/verticalTabsPane.uc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Vertical Tabs Pane
// @version 1.6.0
// @version 1.6.1
// @author aminomancer
// @homepage https://github.com/aminomancer/uc.css.js
// @description Create a vertical pane across from the sidebar that functions like the vertical
Expand Down Expand Up @@ -187,7 +187,7 @@
create(document, "toolbartabstop", { "aria-hidden": true })
);
this.newTabButton = this.buttonsRow.appendChild(
document.getElementById("new-tab-button").cloneNode(true)
CustomizableUI.getWidget("new-tab-button").forWindow(window).node.cloneNode(true)
);
this.newTabButton.id = "vertical-tabs-new-tab-button";
this.newTabButton.setAttribute("flex", "1");
Expand Down

0 comments on commit 21e5576

Please sign in to comment.