From dbd5f42b12aeca81f67e9a1a750301dcf5573f86 Mon Sep 17 00:00:00 2001 From: Dennis Ashby Date: Sat, 26 Aug 2017 11:09:39 -0700 Subject: [PATCH] Update index.html Adding a demo option to allow being able to show the dashboard publicly (from demos) without worry of giving the ability to start HEAP dumps or Profiling. --- public/index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index 26a05ce..318c73b 100644 --- a/public/index.html +++ b/public/index.html @@ -53,7 +53,7 @@
- +
@@ -208,7 +208,12 @@ socket.on('title', function(data) { updateHeader(data); }); - + socket.on('demo', function(data) { + if(JSON.parse(data).demo) { + document.getElementById('menu').style.display = 'none'; + } + }); + let selected_tab = "main-tab" window.addEventListener('resize', resize);