Skip to content

Commit

Permalink
Finalized icon fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jclarke0000 committed Dec 11, 2018
1 parent 874cce8 commit ea2f7dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion MMM-DarkSkyForecast.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,13 @@ Module.register("MMM-DarkSkyForecast", {
//broadcast weather update
this.sendNotification("DARK_SKY_FORECAST_WEATHER_UPDATE", payload);

//start icon playback
/*
Start icon playback. We need to wait until the canvas elements
have been drawn to the DOM before drawing and starting the icons.
Depending on module configs, some may or may not actually get drawn
to the DOM. So we periodically loop through the icon cache until
we find one present.
*/
if (this.config.useAnimatedIcons) {
var self = this;
this.animatedIconDrawTimer = setInterval(function() {
Expand Down

0 comments on commit ea2f7dc

Please sign in to comment.