diff options
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/pichat.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index ef45935..18e438a 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -465,7 +465,7 @@ function refresh() { if (IsAdmin && window.console) { console.error(resp, textStatus, errorThrown); } - setTimeout(refresh, 1000); + setTimeout(refresh, 4000); }; $.ajax({ @@ -504,6 +504,10 @@ function initChat() { // see /static/webcam/webcam.js if ('webcam' in window) webcam.init() + startChatUpdater(); +} + +function startChatUpdater() { setTimeout(refresh, 1000); } |
