From 9ee242cfe0c8361ddfff7e72a9b8318b25f1f523 Mon Sep 17 00:00:00 2001 From: simon04 Date: Sat, 4 Jun 2011 14:02:55 +0200 Subject: [PATCH] Fixed wind direction possibly being null. --- src/extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.js b/src/extension.js index dce1db1..de31427 100644 --- a/src/extension.js +++ b/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; });