Last active
August 29, 2015 14:07
-
-
Save bgrins/6be1986cab3a3b190fa2 to your computer and use it in GitHub Desktop.
Fx frontend snippets
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
Components.classes["@mozilla.org/chrome/chrome-registry;1"] | |
.getService(Components.interfaces.nsIChromeRegistry) | |
.convertChromeURL(makeURI("chrome://global/skin/icons/chevron.png")).spec | |
/* Or, inside of webapprt: */ | |
Components.utils.import("resource://gre/modules/Services.jsm"); | |
Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(Components.interfaces.nsIChromeRegistry).convertChromeURL(Services.io.newURI("chrome://global/skin/icons/chevron.png", | |
null, null)).spec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment