@cryptotaxi247 / netdata-1 / commits / 10f5fc508

fix error on demo sites

Costa Tsaousis (ktsaou) committed Sep 25, 2016 at 01:08 UTC 10f5fc50810354dd1458d983da706456910c9479
1 file changed +5 -5
web/index.html
+5 -5
@@ -651,10 +651,6 @@
651 return this_is_demo;
652 }
653
654 - if(isdemo()) {
655 - document.getElementById('masthead').style.display = 'block';
656 - }
657 -
654 function netdataURL(url) {
655 if(typeof url === 'undefined')
656 url = document.location.toString();
@@ -2125,7 +2121,11 @@
2121 NETDATA.requiredJs.push({
2122 url: NETDATA.serverDefault + 'dashboard_info.js',
2123 isAlreadyLoaded: function() { return false; }
2128 - })
2124 + });
2125 +
2126 + if(isdemo()) {
2127 + document.getElementById('masthead').style.display = 'block';
2128 + }
2129 }
2130
2131 // our entry point