From c0a14ab104b17d213632bbc0b7a4bfe5806a6b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Kl=C3=A4rner?= Date: Sat, 29 May 2021 23:43:02 +0200 Subject: [PATCH] document why we set this attribute --- MMM-GrafanaChart.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MMM-GrafanaChart.js b/MMM-GrafanaChart.js index 61d78b5..c7160d9 100755 --- a/MMM-GrafanaChart.js +++ b/MMM-GrafanaChart.js @@ -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; },