From 90c9e86461a6c240499c94ed9fcd36e7b4fbcef3 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 10 Dec 2016 13:05:35 -0500 Subject: Rewrite session check component in vanilla js --- assets/js/core/base.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'assets/js/core') diff --git a/assets/js/core/base.js b/assets/js/core/base.js index 07ddf99b..1da72357 100644 --- a/assets/js/core/base.js +++ b/assets/js/core/base.js @@ -88,3 +88,7 @@ KB.render = function () { } } }; + +KB.interval = function (seconds, callback) { + setInterval(callback, seconds * 1000); +}; -- cgit v1.2.3