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