Remove and then re-add the skycons icon to make sure that the refresh happens
This commit is contained in:
parent
fd792cb089
commit
49333d892e
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue