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) {
|
if (currentIcon) {
|
||||||
skycons.set('weather-icon', icon);
|
skycons.remove('weather-icon');
|
||||||
} else {
|
|
||||||
skycons.add('weather-icon', icon);
|
|
||||||
skycons.play();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
skycons.add('weather-icon', icon);
|
||||||
|
skycons.play();
|
||||||
currentIcon = icon;
|
currentIcon = icon;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue