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); });