Skip to content

Commit

Permalink
Ensure that document refresh doesn't perform needless text writes
Browse files Browse the repository at this point in the history
  • Loading branch information
adomasven committed Mar 14, 2018
1 parent 92346c8 commit 25d8898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chrome/content/zotero/xpcom/integration.js
Expand Up @@ -1007,8 +1007,8 @@ Zotero.Integration.Fields.prototype._updateDocument = async function(forceCitati
var plainCitation = citation.properties.plainCitation && citationField.getText();

// Update citation text:
// If we're not specifically *not* trying to regen text
if (forceCitations != FORCE_CITATIONS_FALSE
// If we're looking to reset the text even if it matches previous text
if (forceCitations == FORCE_CITATIONS_RESET_TEXT
// Or metadata has changed thus changing the formatted citation
|| (citation.properties.formattedCitation !== formattedCitation)) {

Expand Down

0 comments on commit 25d8898

Please sign in to comment.