Skip to content

Instantly share code, notes, and snippets.

@gregglind
Created September 3, 2014 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregglind/d173942f3d4208a705c7 to your computer and use it in GitHub Desktop.
Save gregglind/d173942f3d4208a705c7 to your computer and use it in GitHub Desktop.
code to change sdk panels to no autohide.
let xulWindow = WindowUtils.getMostRecentBrowserWindow()
let mainWindow = xulWindow.document.children["main-window"]
let xulPanel = Array.from(mainWindow.querySelectorAll("popupset#mainPopupSet panel")).find(p => p.backgroundFrame && p.backgroundFrame.getAttribute("src") == this.panelUri)
xulPanel.setAttribute("noautohide", true)
@Lukich
Copy link

Lukich commented Dec 4, 2014

Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment