Skip to content

Commit

Permalink
Fix noteType type issues when talking to js-ctypes libs
Browse files Browse the repository at this point in the history
  • Loading branch information
adomasven committed May 2, 2017
1 parent 32b1769 commit a76493f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions chrome/content/zotero/xpcom/integration.js
Expand Up @@ -3141,12 +3141,17 @@ Zotero.Integration.DocumentData.prototype.unserializeXML = function(xmlData) {

this.prefs[name] = value;
}
if(this.prefs["storeReferences"] === undefined) this.prefs["storeReferences"] = false;
if(this.prefs["automaticJournalAbbreviations"] === undefined) this.prefs["automaticJournalAbbreviations"] = false;
try {
this.prefs.noteType = parseInt(noteType);
} catch (e) {
this.prefs.noteType = 0;
}
if (this.prefs["storeReferences"] === undefined) this.prefs["storeReferences"] = false;
if (this.prefs["automaticJournalAbbreviations"] === undefined) this.prefs["automaticJournalAbbreviations"] = false;
this.zoteroVersion = doc.documentElement.getAttribute("zotero-version");
if(!this.zoteroVersion) this.zoteroVersion = "2.0";
if (!this.zoteroVersion) this.zoteroVersion = "2.0";
this.dataVersion = doc.documentElement.getAttribute("data-version");
if(!this.dataVersion) this.dataVersion = 2;
if (!this.dataVersion) this.dataVersion = 2;
};

/**
Expand Down

0 comments on commit a76493f

Please sign in to comment.