From 327c0793d1120a23e12d2417b0e626ea5da8238d Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 26 Aug 2019 21:21:47 +0200 Subject: [PATCH] template: move js session refresh to single file ; use fetch API --- template/quitesimple/general_footer | 9 +-------- template/quitesimple/js_session_refresh | 5 +++++ template/quitesimple/page_footer | 9 +-------- 3 files changed, 7 insertions(+), 16 deletions(-) create mode 100644 template/quitesimple/js_session_refresh diff --git a/template/quitesimple/general_footer b/template/quitesimple/general_footer index ec315a8..9ec5c7d 100644 --- a/template/quitesimple/general_footer +++ b/template/quitesimple/general_footer @@ -5,14 +5,7 @@ diff --git a/template/quitesimple/js_session_refresh b/template/quitesimple/js_session_refresh new file mode 100644 index 0000000..287f6d9 --- /dev/null +++ b/template/quitesimple/js_session_refresh @@ -0,0 +1,5 @@ +function refreshSession() +{ +fetch(new Request("{qswiki:config:refreshsessionurl}")); +} +setInterval(refreshSession, 60*2*1000); diff --git a/template/quitesimple/page_footer b/template/quitesimple/page_footer index 90cd7e6..3aba2fe 100644 --- a/template/quitesimple/page_footer +++ b/template/quitesimple/page_footer @@ -7,14 +7,7 @@