Fix doc.prefs.noteType handling with NaN values
This commit is contained in:
parent
12e7b7b851
commit
746171ab78
1 changed files with 2 additions and 5 deletions
|
@ -3137,11 +3137,8 @@ Zotero.Integration.DocumentData.prototype.unserializeXML = function(xmlData) {
|
||||||
|
|
||||||
this.prefs[name] = value;
|
this.prefs[name] = value;
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
this.prefs.noteType = parseInt(this.prefs.noteType);
|
this.prefs.noteType = parseInt(this.prefs.noteType) || 0;
|
||||||
} catch (e) {
|
|
||||||
this.prefs.noteType = 0;
|
|
||||||
}
|
|
||||||
if (this.prefs["automaticJournalAbbreviations"] === undefined) this.prefs["automaticJournalAbbreviations"] = false;
|
if (this.prefs["automaticJournalAbbreviations"] === undefined) this.prefs["automaticJournalAbbreviations"] = false;
|
||||||
this.zoteroVersion = doc.documentElement.getAttribute("zotero-version");
|
this.zoteroVersion = doc.documentElement.getAttribute("zotero-version");
|
||||||
if (!this.zoteroVersion) this.zoteroVersion = "2.0";
|
if (!this.zoteroVersion) this.zoteroVersion = "2.0";
|
||||||
|
|
Loading…
Add table
Reference in a new issue