template: move js session refresh to single file ; use fetch API
Dieser Commit ist enthalten in:
Ursprung
5c3dc9982f
Commit
327c0793d1
@ -5,14 +5,7 @@
|
||||
</ul>
|
||||
</footer>
|
||||
<script>
|
||||
function refreshSession()
|
||||
{
|
||||
var req = new XMLHttpRequest();
|
||||
req.open("GET", "{qswiki:config:refreshsessionurl}");
|
||||
req.send();
|
||||
setTimeout(refreshSession, 60*2*1000);
|
||||
}
|
||||
setTimeout(refreshSession, 60*2*1000);
|
||||
{qswiki:include:js_session_refresh}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
5
template/quitesimple/js_session_refresh
Normale Datei
5
template/quitesimple/js_session_refresh
Normale Datei
@ -0,0 +1,5 @@
|
||||
function refreshSession()
|
||||
{
|
||||
fetch(new Request("{qswiki:config:refreshsessionurl}"));
|
||||
}
|
||||
setInterval(refreshSession, 60*2*1000);
|
@ -7,14 +7,7 @@
|
||||
</ul>
|
||||
</footer>
|
||||
<script>
|
||||
function refreshSession()
|
||||
{
|
||||
var req = new XMLHttpRequest();
|
||||
req.open("GET", "{qswiki:config:refreshsessionurl}");
|
||||
req.send();
|
||||
setTimeout(refreshSession, 60*2*1000);
|
||||
}
|
||||
setTimeout(refreshSession, 60*2*1000);
|
||||
{qswiki:include:js_session_refresh}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren