From f4340312fd89aad725afa7883b2c7893405fc0f1 Mon Sep 17 00:00:00 2001 From: Jesse McDonald Date: Fri, 13 Mar 2020 10:37:13 -0500 Subject: [PATCH] reload the page every four hours to keep the code updated --- js/chess.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/chess.js b/js/chess.js index 86cb568..777f547 100644 --- a/js/chess.js +++ b/js/chess.js @@ -821,6 +821,9 @@ $(function (){ switchGameId(gameId); } }; + + /* force page reload after four hours to keep client code up to date */ + window.setTimeout(function(){ location.reload(); }, 4*3600*1000); }); /* vim:set expandtab sw=3 ts=8: */