More robust GPX parsing

This commit is contained in:
Eric van der Vlist 2022-12-10 21:39:58 +01:00
parent 882e5545fd
commit b2955c8bbd
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
export default class Link {
constructor(object) {
this.$ = {};
this.$.href = object.$.href || object.href;
this.$.href = object.$?.href || object.href;
this.text = object.text;
this.type = object.type;
}
}
}