Fix word processor integration installation error

This commit is contained in:
Dan Stillman 2017-02-23 15:10:36 -05:00
parent bb38c974bf
commit 01f18cba90

View file

@ -35,6 +35,7 @@ var Zotero = Components.classes["@zotero.org/Zotero;1"]
.getService(Components.interfaces.nsISupports) .getService(Components.interfaces.nsISupports)
.wrappedJSObject; .wrappedJSObject;
Components.utils.import("resource://gre/modules/Services.jsm");
Components.utils.import("resource://gre/modules/AddonManager.jsm"); Components.utils.import("resource://gre/modules/AddonManager.jsm");
var installationInProgress = false; var installationInProgress = false;
@ -85,7 +86,7 @@ ZoteroPluginInstaller.prototype = {
var version = this.prefBranch.getCharPref("version"); var version = this.prefBranch.getCharPref("version");
if(this.force || ( 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")) || (!Zotero.isStandalone && !this.prefBranch.getBoolPref("installed"))
) )
&& !this.prefBranch.getBoolPref("skipInstallation") && !this.prefBranch.getBoolPref("skipInstallation")