Add tags for librejs compatibility on application/console pages and in embedded javascript

This commit is contained in:
hankhill19580
2020-09-20 05:05:57 +00:00
parent c4a5d111e7
commit 8fa3e45e47
23 changed files with 129 additions and 1 deletions

View File

@ -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><%
}
%>