From 1e1c12636c53e6339035eda0a3bb2480edf3ec8b Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Tue, 27 Jul 2021 15:08:55 +0800 Subject: [PATCH] support hide nav in web console. #1873 --- .../resources/com/taobao/arthas/core/http/web-console.js | 5 +++++ tunnel-server/src/main/resources/static/web-console.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/core/src/main/resources/com/taobao/arthas/core/http/web-console.js b/core/src/main/resources/com/taobao/arthas/core/http/web-console.js index a63efdf42..7e0b67802 100644 --- a/core/src/main/resources/com/taobao/arthas/core/http/web-console.js +++ b/core/src/main/resources/com/taobao/arthas/core/http/web-console.js @@ -18,6 +18,11 @@ $(function () { $('#port').val(8563); } + var iframe = getUrlParam('iframe'); + if (iframe != null && iframe != 'false') { + $("nav").hide() + } + startConnect(true); }); diff --git a/tunnel-server/src/main/resources/static/web-console.js b/tunnel-server/src/main/resources/static/web-console.js index 31905bd54..5fb9b60c8 100644 --- a/tunnel-server/src/main/resources/static/web-console.js +++ b/tunnel-server/src/main/resources/static/web-console.js @@ -19,6 +19,11 @@ $(function () { $('#agentId').val(agentId); } + var iframe = getUrlParam('iframe'); + if (iframe != null && iframe != 'false') { + $("nav").hide() + } + startConnect(true); });