diff --git a/apps/routerconsole/jsp/i2ptunnelmgr.jsp b/apps/routerconsole/jsp/i2ptunnelmgr.jsp index 58c476116c..a9faab8995 100644 --- a/apps/routerconsole/jsp/i2ptunnelmgr.jsp +++ b/apps/routerconsole/jsp/i2ptunnelmgr.jsp @@ -22,8 +22,11 @@ function requestAjax1() { ajax("/xhr1.jsp?requestURI=<%=request.getRequestURI()%>", "xhr", <%=intl.getRefresh()%>000); } function initAjax() { setTimeout(requestAjax1, <%=intl.getRefresh()%>000); } function resizeFrame(f) { f.style.height = f.contentWindow.document.body.scrollHeight + "px"; } + function injectClass(f) { f.contentWindow.document.getElementsByTagName('body')[0].setAttribute('class', 'iframed'); } function init() { - resizeFrame(document.getElementById("i2ptunnelframe")); + f = document.getElementById("i2ptunnelframe"); + resizeFrame(f); + injectClass(f); initAjax(); } @@ -33,7 +36,7 @@