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

This commit is contained in:
Simon Kornblith 2012-01-27 05:54:24 -05:00
parent 9457927a3e
commit 0e1df8b8b4

View file

@ -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);