Potential bugfixery for #1218

This commit is contained in:
Adomas Venčkauskas 2017-05-05 14:51:40 +03:00
parent 7a51f5e3cc
commit b679adad45

View file

@ -3082,8 +3082,13 @@ Zotero.Integration.DocumentData = function(string) {
Zotero.Integration.DocumentData.prototype.serialize = function() {
// If we've retrieved data with version 4 (JSON), serialize back to JSON
if (this.dataVersion == 4) {
// Filter style properties
let style = {};
for (let prop of ['styleID', 'locale', 'hasBibliography', 'bibliographyStyleHasBeenSet']) {
style[prop] = this.style[prop];
}
return JSON.stringify({
style: this.style,
style,
prefs: this.prefs,
sessionID: this.sessionID,
zoteroVersion: Zotero.version,