bugfixes
parent
6ad1474f87
commit
4c4e2d1f23
|
|
@ -43,7 +43,7 @@ function getJsonFromXML(dom) {
|
|||
// initializing object to be returned.
|
||||
let jsonResult = {};
|
||||
|
||||
let attributes = dom.attributes
|
||||
let attributes = dom.attributes ? dom.attributes : []
|
||||
for (let attribute of attributes) {
|
||||
jsonResult[attribute.name] = attribute.value
|
||||
}
|
||||
|
|
@ -108,7 +108,7 @@ function calculateBirthdate(json) {
|
|||
*/
|
||||
function mapRawJson(rawJson) {
|
||||
let json = {}
|
||||
let held = rawJson.held;
|
||||
let held = rawJson.helden.held;
|
||||
json.name = held.name
|
||||
json.meta = {}
|
||||
json.meta.spezies = held.basis.rasse.string
|
||||
|
|
|
|||
Loading…
Reference in New Issue