Stop using hard-coded URL for "get more devtools"

This commit is contained in:
wolfbeast 2019-02-16 12:46:20 +01:00 committed by Roy Tam
commit c9b76fb369

View file

@ -189,7 +189,8 @@ exports.menuitems = [
l10nKey: "getMoreDevtoolsCmd",
oncommand(event) {
let window = event.target.ownerDocument.defaultView;
window.openUILinkIn("https://addons.mozilla.org/firefox/collections/mozilla/webdeveloper/", "tab");
let getMoreURL = Services.prefs.getCharPref("browser.getdevtools.url");
window.openUILinkIn(getMoreURL, "tab");
}
},
];