[Pkg-mozext-commits] [sage-extension] 05/20: removed pre FF 4.0 code
David Prévot
taffit at moszumanska.debian.org
Sat Feb 13 01:36:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository sage-extension.
commit a1caf8f4a750619ba7eecadd7acb934b7435c582
Author: Peter Andrews <petea at jhu.edu>
Date: Sat Aug 1 15:23:43 2015 -0700
removed pre FF 4.0 code
---
src/chrome/content/sidebar.js | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
diff --git a/src/chrome/content/sidebar.js b/src/chrome/content/sidebar.js
index 5bdd1d4..aa4bc4d 100644
--- a/src/chrome/content/sidebar.js
+++ b/src/chrome/content/sidebar.js
@@ -346,19 +346,13 @@ var sidebarController = {
openAboutDialog : function() {
var appInfo = Components.classes["@mozilla.org/xre/app-info;1"].getService(Components.interfaces.nsIXULAppInfo);
var versionChecker = Components.classes["@mozilla.org/xpcom/version-comparator;1"].getService(Components.interfaces.nsIVersionComparator);
- if (versionChecker.compare(appInfo.version, "4.0a") >= 0) {
- Components.utils.import("resource://gre/modules/AddonManager.jsm");
- AddonManager.getAddonByID("{a6ca9b3b-5e52-4f47-85d8-cca35bb57596}", function(aAddon) {
- openDialog("chrome://mozapps/content/extensions/about.xul", "", "chrome,centerscreen,modal", aAddon);
- });
- } else {
- var extensionManager = Cc["@mozilla.org/extensions/manager;1"].getService(Ci.nsIExtensionManager);
- openDialog("chrome://mozapps/content/extensions/about.xul", "",
- "chrome,centerscreen,modal", "urn:mozilla:item:{a6ca9b3b-5e52-4f47-85d8-cca35bb57596}", extensionManager.datasource);
- }
+ Components.utils.import("resource://gre/modules/AddonManager.jsm");
+ AddonManager.getAddonByID("{a6ca9b3b-5e52-4f47-85d8-cca35bb57596}", function(aAddon) {
+ openDialog("chrome://mozapps/content/extensions/about.xul", "", "chrome,centerscreen,modal", aAddon);
+ });
}
-}
+};
function rssItemListBoxClick(aEvent) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git
More information about the Pkg-mozext-commits
mailing list