www

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

commit 01f18cba901cb5362496a0f8413a503898c9467c
parent bb38c974bf6410f7e253ad5047239b74c8d8bd2b
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 23 Feb 2017 15:10:36 -0500

Fix word processor integration installation error

Diffstat:
Mresource/word-processor-plugin-installer.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/resource/word-processor-plugin-installer.js b/resource/word-processor-plugin-installer.js @@ -34,7 +34,8 @@ var Zotero = Components.classes["@zotero.org/Zotero;1"] //.getService(Components.interfaces.chnmIZoteroService). .getService(Components.interfaces.nsISupports) .wrappedJSObject; - + +Components.utils.import("resource://gre/modules/Services.jsm"); Components.utils.import("resource://gre/modules/AddonManager.jsm"); var installationInProgress = false; @@ -85,7 +86,7 @@ ZoteroPluginInstaller.prototype = { var version = this.prefBranch.getCharPref("version"); if(this.force || ( ( - versionComparator.compare(version, this._addon.LAST_INSTALLED_FILE_UPDATE) < 0 + Services.vc.compare(version, this._addon.LAST_INSTALLED_FILE_UPDATE) < 0 || (!Zotero.isStandalone && !this.prefBranch.getBoolPref("installed")) ) && !this.prefBranch.getBoolPref("skipInstallation")