summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorGeorge Moschovitis <george.moschovitis@gmail.com>2018-11-26 17:25:27 +0200
committerGitHub <noreply@github.com>2018-11-26 17:25:27 +0200
commitdbbe252e93e2b45e1e86e0cc73b754304a3c0b41 (patch)
tree10b26f860f1870312addb31f8306abc10aaccc82 /web
parent85a55e76d5e135dabb74689658d7893177b1949c (diff)
Use var to make NETDATA variable global (#4752)
Diffstat (limited to 'web')
-rw-r--r--web/gui/dashboard.js3
-rw-r--r--web/gui/src/dashboard.js/prologue.js.inc3
2 files changed, 4 insertions, 2 deletions
diff --git a/web/gui/dashboard.js b/web/gui/dashboard.js
index 1b56823696..1ead65b7e1 100644
--- a/web/gui/dashboard.js
+++ b/web/gui/dashboard.js
@@ -77,7 +77,8 @@
// ----------------------------------------------------------------------------
// global namespace
-const NETDATA = window.NETDATA || {};
+// Should stay var!
+var NETDATA = window.NETDATA || {};
(function(window, document, $, undefined) {
diff --git a/web/gui/src/dashboard.js/prologue.js.inc b/web/gui/src/dashboard.js/prologue.js.inc
index ae9201bc7e..afa1f0e052 100644
--- a/web/gui/src/dashboard.js/prologue.js.inc
+++ b/web/gui/src/dashboard.js/prologue.js.inc
@@ -77,7 +77,8 @@
// ----------------------------------------------------------------------------
// global namespace
-const NETDATA = window.NETDATA || {};
+// Should stay var!
+var NETDATA = window.NETDATA || {};
(function(window, document, $, undefined) {