From 0e1df8b8b4c7b5e88e7c0814a7b105aab6b0f67d Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 27 Jan 2012 05:54:24 -0500 Subject: [PATCH] Don't warn about corruption when Zotero Standalone is launched from zotero://fullscreen (does anyone use this?) --- chrome/content/zotero/standalone/standalone.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js index 9840af7789..6fac216219 100644 --- a/chrome/content/zotero/standalone/standalone.js +++ b/chrome/content/zotero/standalone/standalone.js @@ -42,7 +42,7 @@ const ZoteroStandalone = new function() { ZoteroPane.makeVisible(); // Run check for corrupt installation, where the wrong Gecko runtime is being used - if(Zotero.isMac) { + if(Zotero.isMac && Zotero.isStandalone) { var greDir = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get("GreD", Components.interfaces.nsIFile); @@ -65,7 +65,8 @@ const ZoteroStandalone = new function() { hs.store(handlerInfo); } - // Add add-on listeners (not yet hooked up)Services.obs.addObserver(gXPInstallObserver, "addon-install-disabled", false); + // Add add-on listeners (not yet hooked up) + Services.obs.addObserver(gXPInstallObserver, "addon-install-disabled", false); Services.obs.addObserver(gXPInstallObserver, "addon-install-started", false); Services.obs.addObserver(gXPInstallObserver, "addon-install-blocked", false); Services.obs.addObserver(gXPInstallObserver, "addon-install-failed", false);