diff options
author | George Moschovitis <george.moschovitis@gmail.com> | 2018-11-26 17:25:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-26 17:25:27 +0200 |
commit | dbbe252e93e2b45e1e86e0cc73b754304a3c0b41 (patch) | |
tree | 10b26f860f1870312addb31f8306abc10aaccc82 /web | |
parent | 85a55e76d5e135dabb74689658d7893177b1949c (diff) |
Use var to make NETDATA variable global (#4752)
Diffstat (limited to 'web')
-rw-r--r-- | web/gui/dashboard.js | 3 | ||||
-rw-r--r-- | web/gui/src/dashboard.js/prologue.js.inc | 3 |
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) { |