]> arthur.barton.de Git - netdata.git/commitdiff
fix error on demo sites
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 24 Sep 2016 22:08:23 +0000 (01:08 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 24 Sep 2016 22:08:23 +0000 (01:08 +0300)
web/index.html

index e2a40f11be606edc284cc84f1df1d5438c29b4fd..4aaeaf57592988c9b9e69bfa828b42d376851c08 100644 (file)
         return this_is_demo;
     }
 
-    if(isdemo()) {
-        document.getElementById('masthead').style.display = 'block';
-    }
-
     function netdataURL(url) {
         if(typeof url === 'undefined')
             url = document.location.toString();
         NETDATA.requiredJs.push({
             url: NETDATA.serverDefault + 'dashboard_info.js',
             isAlreadyLoaded: function() { return false; }
-        })
+        });
+        
+        if(isdemo()) {
+            document.getElementById('masthead').style.display = 'block';
+        }
     }
 
     // our entry point