summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/content/about.js
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/mozapps/extensions/content/about.js')
-rw-r--r--toolkit/mozapps/extensions/content/about.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/toolkit/mozapps/extensions/content/about.js b/toolkit/mozapps/extensions/content/about.js
index 4f8fb353e..49ca4acc1 100644
--- a/toolkit/mozapps/extensions/content/about.js
+++ b/toolkit/mozapps/extensions/content/about.js
@@ -6,21 +6,15 @@
"use strict";
-/* import-globals-from ../../../content/contentAreaUtils.js */
-
-var Cu = Components.utils;
-Cu.import("resource://gre/modules/AddonManager.jsm");
-
function init() {
var addon = window.arguments[0];
var extensionsStrings = document.getElementById("extensionsStrings");
document.documentElement.setAttribute("addontype", addon.type);
- var iconURL = AddonManager.getPreferredIconURL(addon, 48, window);
- if (iconURL) {
+ if (addon.iconURL) {
var extensionIcon = document.getElementById("extensionIcon");
- extensionIcon.src = iconURL;
+ extensionIcon.src = addon.iconURL;
}
document.title = extensionsStrings.getFormattedString("aboutWindowTitle", [addon.name]);
@@ -74,7 +68,7 @@ function init() {
var acceptButton = document.documentElement.getButton("accept");
acceptButton.label = extensionsStrings.getString("aboutWindowCloseButton");
-
+
setTimeout(sizeToContent, 0);
}