More robust GPX parsing
This commit is contained in:
parent
882e5545fd
commit
b2955c8bbd
|
@ -1,8 +1,8 @@
|
||||||
export default class Link {
|
export default class Link {
|
||||||
constructor(object) {
|
constructor(object) {
|
||||||
this.$ = {};
|
this.$ = {};
|
||||||
this.$.href = object.$.href || object.href;
|
this.$.href = object.$?.href || object.href;
|
||||||
this.text = object.text;
|
this.text = object.text;
|
||||||
this.type = object.type;
|
this.type = object.type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue