diff --git a/src/renderer/components/Help.vue b/src/renderer/components/Help.vue index 5118886..582e14a 100644 --- a/src/renderer/components/Help.vue +++ b/src/renderer/components/Help.vue @@ -1,7 +1,18 @@ + @@ -51,7 +60,9 @@ }, computed: { - + version: function () { + return ' Flightgear Airports ' + require('electron').remote.app.getVersion() + } } } diff --git a/src/renderer/loaders/groundnet_writer.js b/src/renderer/loaders/groundnet_writer.js index 155dbaf..4fc2c74 100644 --- a/src/renderer/loaders/groundnet_writer.js +++ b/src/renderer/loaders/groundnet_writer.js @@ -206,7 +206,12 @@ var mapParkings = function (o) { console.debug(o.options.attributes.airlineCodes); parking['@airlineCodes'] = o.options.attributes.airlineCodes; } - if(o.options.attributes.number !== undefined && o.options.attributes.number.trim() !== '') { + if(o.options.attributes.number !== undefined && + typeof o.options.attributes.number === 'number' || ( + typeof o.options.attributes.number === 'string' && + o.options.attributes.number.trim() !== '' + ) + ) { console.debug(o.options.attributes.number); parking['@number'] = o.options.attributes.number; }