Remove and then re-add the skycons icon to make sure that the refresh happens

This commit is contained in:
Fabio Manganiello 2018-06-24 14:35:36 +02:00
parent fd792cb089
commit 49333d892e

View file

@ -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;
};