From b2955c8bbd7519e561ede51fe5dbcb71b1435b4b Mon Sep 17 00:00:00 2001 From: evlist Date: Sat, 10 Dec 2022 21:39:58 +0100 Subject: [PATCH] More robust GPX parsing --- src/lib/gpx-parser-builder/src/link.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/gpx-parser-builder/src/link.js b/src/lib/gpx-parser-builder/src/link.js index f7e05af..074bd5d 100644 --- a/src/lib/gpx-parser-builder/src/link.js +++ b/src/lib/gpx-parser-builder/src/link.js @@ -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; } -} \ No newline at end of file +}