зеркало из https://github.com/mozilla/gecko-dev.git
Bug 302980. Malformed get more extensions URL. r+a=mconnor
This commit is contained in:
Родитель
15d07051a7
Коммит
7d376a9edf
|
@ -209,7 +209,6 @@ function Startup()
|
|||
gGetMoreURL = pref.getComplexValue(isExtensions ? PREF_EXTENSIONS_GETMOREEXTENSIONSURL
|
||||
: PREF_EXTENSIONS_GETMORETHEMESURL,
|
||||
Components.interfaces.nsIPrefLocalizedString).data;
|
||||
document.getElementById('getMore').setAttribute('href', gGetMoreURL);
|
||||
var app = Components.classes["@mozilla.org/xre/app-info;1"]
|
||||
.getService(Components.interfaces.nsIXULAppInfo);
|
||||
gGetMoreURL = gGetMoreURL.replace(/%APPID%/g, app.ID);
|
||||
|
@ -217,6 +216,7 @@ function Startup()
|
|||
var getMore = document.getElementById("getMore");
|
||||
getMore.setAttribute("value", getMore.getAttribute(isExtensions ? "valueextensions" : "valuethemes"));
|
||||
getMore.setAttribute("tooltiptext", getMore.getAttribute(isExtensions ? "tooltiptextextensions" : "tooltiptextthemes"));
|
||||
getMore.setAttribute('href', gGetMoreURL);
|
||||
|
||||
if (!isExtensions) {
|
||||
var themePreviewArea = document.getElementById("themePreviewArea");
|
||||
|
|
Загрузка…
Ссылка в новой задаче