Skip to content

Commit

Permalink
[FB] Verticaltab | Retry to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Oct 19, 2023
1 parent 127f10f commit d0a67b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions browser/base/content/browser-verticaltabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");

function setWorkspaceLabel() {
Expand Down Expand Up @@ -109,6 +110,15 @@ function setVerticalTabs() {

// Observer
toggleCustomizeModeVerticaltabStyle();


// Modify the tab bar
window.setTimeout(() => {
if (document.querySelector("#browser #TabsToolbar")?.getAttribute("hidden") != "true") {
document.getElementById("browser").prepend(document.getElementById("TabsToolbar"));
document.getElementById("TabsToolbar").removeAttribute("hidden");
}
}, 1000);
} else {
// TODO: Re-implement the vertical tab bar. This code is not working.
document.getElementById("titlebar").prepend(document.getElementById("TabsToolbar"));
Expand Down

0 comments on commit d0a67b6

Please sign in to comment.