Created
September 3, 2014 19:13
-
-
Save gregglind/d173942f3d4208a705c7 to your computer and use it in GitHub Desktop.
code to change sdk panels to no autohide.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!!!