Skip to content

Commit

Permalink
document why we set this attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
klaernie committed Apr 2, 2023
1 parent a594223 commit c0a14ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MMM-GrafanaChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ Module.register("MMM-GrafanaChart", {
iframe.width = this.config.width;
iframe.height = this.config.height;
iframe.scrolling = this.config.scrolling;
iframe.src = this.buildUrl();
// this attribute is used to ensure MagicMirror doesn't throw away our updateDom(), because the DOM object is identical to the previous one
iframe.setAttribute("timestamp", new Date().getTime());
return iframe;
},
Expand Down

0 comments on commit c0a14ab

Please sign in to comment.