From a8294c6c8161bd179c0238cccc82b32a8140fc31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Kl=C3=A4rner?= Date: Sat, 29 May 2021 22:58:14 +0200 Subject: [PATCH] remove unused this.src --- MMM-GrafanaChart.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/MMM-GrafanaChart.js b/MMM-GrafanaChart.js index 4cedacc..a68d599 100755 --- a/MMM-GrafanaChart.js +++ b/MMM-GrafanaChart.js @@ -50,11 +50,6 @@ Module.register("MMM-GrafanaChart", { Log.error("Tried to refresh, iFrameReload URL not set!"); return; } - if (this.config.version == "6") { - this.src = "http://" + this.config.host + ":" + this.config.port + "/d-solo/" + this.config.id + "/" + this.config.dashboardname + "?orgId=" + this.config.orgId + "&panelId=" + this.config.panelId + "&from=" + this.config.from + "&to=" + this.config.to + "&fullscreen&kiosk"; - } else{ - this.src = "http://" + this.config.host + ":" + this.config.port + "/dashboard-solo/db/" + this.config.dashboardname+ "?orgId=" + this.config.orgId + "&panelId=" + this.config.panelId + "&from=" + this.config.from + "&to=" + this.config.to; - } Log.info("attempting to update dom for iFrameReload"); Log.info('/"this/" module is: ' + this); this.updateDom(1000);