www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0e1df8b8b4c7b5e88e7c0814a7b105aab6b0f67d
parent 9457927a3e49afd17af4da200c9f1e1daa531ce7
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri, 27 Jan 2012 05:54:24 -0500

Don't warn about corruption when Zotero Standalone is launched from zotero://fullscreen (does anyone use this?)

Diffstat:
Mchrome/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 @@ -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);