Don't save "browserSupport":null when missing
This commit is contained in:
parent
c078415c26
commit
d8ca9ef438
|
@ -1486,10 +1486,14 @@ Zotero.Schema = new function(){
|
||||||
priority: parseInt(
|
priority: parseInt(
|
||||||
xmlnode.getElementsByTagName('priority')[0].firstChild.nodeValue
|
xmlnode.getElementsByTagName('priority')[0].firstChild.nodeValue
|
||||||
),
|
),
|
||||||
browserSupport: xmlnode.getAttribute('browserSupport'),
|
|
||||||
inRepository: true,
|
inRepository: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var browserSupport = xmlnode.getAttribute('browserSupport');
|
||||||
|
if (browserSupport) {
|
||||||
|
metadata.browserSupport = browserSupport;
|
||||||
|
}
|
||||||
|
|
||||||
for each(var attr in ["configOptions", "displayOptions"]) {
|
for each(var attr in ["configOptions", "displayOptions"]) {
|
||||||
try {
|
try {
|
||||||
var tags = xmlnode.getElementsByTagName(attr);
|
var tags = xmlnode.getElementsByTagName(attr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user