template: move js session refresh to single file ; use fetch API

This commit is contained in:
2019-08-26 21:21:47 +02:00
parent 5c3dc9982f
commit 327c0793d1
3 changed files with 7 additions and 16 deletions

View File

@ -0,0 +1,5 @@
function refreshSession()
{
fetch(new Request("{qswiki:config:refreshsessionurl}"));
}
setInterval(refreshSession, 60*2*1000);