forked from I2P_Developers/i2p.i2p
Slight simplification of class injection for iframed app pages
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
html = f.contentWindow.document.documentElement;
|
||||
f.style.height = body.scrollHeight + "px";
|
||||
}
|
||||
function injectClass(f) { f.contentWindow.document.getElementsByTagName('body')[0].setAttribute('class', 'iframed'); }
|
||||
function injectClass(f) { f.contentWindow.document.body.setAttribute('class', 'iframed'); }
|
||||
function setupFrame() {
|
||||
f = document.getElementById("i2ptunnelframe");
|
||||
resizeFrame(f);
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
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 injectClass(f) { f.contentWindow.document.body.setAttribute('class', 'iframed'); }
|
||||
function setupFrame() {
|
||||
f = document.getElementById("i2psnarkframe");
|
||||
resizeFrame(f);
|
||||
|
||||
Reference in New Issue
Block a user