Fix word processor integration installation error
This commit is contained in:
parent
bb38c974bf
commit
01f18cba90
1 changed files with 3 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue