Skip to content

Commit

Permalink
[FB] BMS | Prevent treeView.js errors when switching Floorp tools
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed May 15, 2023
1 parent 926ee82 commit b834d51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions floorp/browser/base/content/browser-manager-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@
bmsController.controllFunctions.changeVisibleCommandButton(selectedURL.startsWith("floorp//"))
for (let elem of document.getElementsByClassName("webpanels")) {
elem.hidden = true;

if(elem.classList.contains("isFloorp")){
let src = elem.getAttribute("src");
elem.setAttribute("src", "");
elem.setAttribute("src", src);
}
}
if(document.getElementById("sidebar-splitter2").getAttribute("hidden") == "true"){
bmsController.controllFunctions.changeVisibleWenpanel();
Expand Down

0 comments on commit b834d51

Please sign in to comment.