Skip to content

Commit

Permalink
Typo for metric speed unit
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouron committed Dec 27, 2019
1 parent bbc54ae commit 169eb44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MMM-FlightTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Module.register('MMM-FlightTracker', {
const flightMetadata = document.createElement('div');
flightMetadata.className = 'plane-content-metadata xsmall dimmed';
let metadata = [
`<span><span class="bright">${Math.floor(this.config.speedUnits === 'metric' ? aircraft.speed*1.852 : aircraft.speed)}</span> ${this.config.speedUnits === 'metric' ? 'km/s' : 'kn'}</span>`,
`<span><span class="bright">${Math.floor(this.config.speedUnits === 'metric' ? aircraft.speed*1.852 : aircraft.speed)}</span> ${this.config.speedUnits === 'metric' ? 'km/h' : 'kn'}</span>`,
`<span><span class="bright">${Math.floor(this.config.altitudeUnits === 'metric' ? aircraft.altitude/3.2808399 : aircraft.altitude)}</span> ${this.config.altitudeUnits === 'metric' ? 'm' : 'ft'}</span>`,
`<span><span class="bright">${Math.floor(aircraft.heading)}</span>°</span>`
];
Expand Down

0 comments on commit 169eb44

Please sign in to comment.