forked from I2P_Developers/i2p.i2p
Add tags for librejs compatibility on application/console pages and in embedded javascript
This commit is contained in:
@ -2,10 +2,14 @@
|
||||
if (!intl.getDisableRefresh()) {
|
||||
%><script src="/js/ajax.js?<%=net.i2p.CoreVersion.VERSION%>" type="text/javascript"></script>
|
||||
<script nonce="<%=cspNonce%>" type="text/javascript">
|
||||
/* @license http://creativecommons.org/publicdomain/zero/1.0/legalcode CC0-1.0 */
|
||||
|
||||
var failMessage = "<hr><b><%=intl._t("Router is down")%><\/b>";
|
||||
function requestAjax1() { ajax("/xhr1.jsp?requestURI=<%=request.getRequestURI()%>", "xhr", <%=intl.getRefresh()%>000); }
|
||||
function initAjax() { setTimeout(requestAjax1, <%=intl.getRefresh()%>000); }
|
||||
initAjax();
|
||||
|
||||
/* @license-end */
|
||||
</script><%
|
||||
}
|
||||
%>
|
||||
|
Reference in New Issue
Block a user