Fix initial integration action requiring a slow citeproc (re)load
(Regression 9c7271c6
)
This commit is contained in:
parent
21fadee7bb
commit
ac180c2324
|
@ -398,6 +398,7 @@ Zotero.Integration = new function() {
|
||||||
}
|
}
|
||||||
if (!session) {
|
if (!session) {
|
||||||
session = new Zotero.Integration.Session(doc, app);
|
session = new Zotero.Integration.Session(doc, app);
|
||||||
|
session.reload = true;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
yield session.setData(data);
|
yield session.setData(data);
|
||||||
|
@ -1576,7 +1577,7 @@ Zotero.Integration.Session.prototype.addCitation = Zotero.Promise.coroutine(func
|
||||||
}
|
}
|
||||||
// Deal with citations that are copied into the document from somewhere else
|
// Deal with citations that are copied into the document from somewhere else
|
||||||
// and have not been added to the processor yet
|
// and have not been added to the processor yet
|
||||||
if (! this.oldCitations.has(citation.citationID)) {
|
if (! this.oldCitations.has(citation.citationID) && !this.reload) {
|
||||||
this.newIndices[index] = true;
|
this.newIndices[index] = true;
|
||||||
}
|
}
|
||||||
Zotero.debug("Integration: Adding citationID "+citation.citationID);
|
Zotero.debug("Integration: Adding citationID "+citation.citationID);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user