From 49333d892e7a4f76d36cea1800b63092b1e7dfd2 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 24 Jun 2018 14:35:36 +0200 Subject: [PATCH] Remove and then re-add the skycons icon to make sure that the refresh happens --- .../backend/http/static/js/widgets/date-time-weather.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/platypush/backend/http/static/js/widgets/date-time-weather.js b/platypush/backend/http/static/js/widgets/date-time-weather.js index 262274eb8..bc6abc635 100644 --- a/platypush/backend/http/static/js/widgets/date-time-weather.js +++ b/platypush/backend/http/static/js/widgets/date-time-weather.js @@ -33,12 +33,11 @@ $(document).ready(function() { }); if (currentIcon) { - skycons.set('weather-icon', icon); - } else { - skycons.add('weather-icon', icon); - skycons.play(); + skycons.remove('weather-icon'); } + skycons.add('weather-icon', icon); + skycons.play(); currentIcon = icon; };