Fixed wind direction possibly being null.

yahoo_weather
simon04 14 years ago
parent cc4790e94c
commit 9ee242cfe0
  1. 2
      src/extension.js

@ -431,7 +431,7 @@ WeatherMenuButton.prototype = {
this._currentWeatherTemperature.text = temperature + ' ' + this.unit_to_unicode();
this._currentWeatherHumidity.text = humidity;
this._currentWeatherPressure.text = pressure + ' ' + pressure_unit;
this._currentWeatherWind.text = wind_direction + ' ' + wind + ' ' + wind_unit;
this._currentWeatherWind.text = (wind_direction ? wind_direction + ' ' : '') + wind + ' ' + wind_unit;
});

Loading…
Cancel
Save