From 147c511c61cc6236c1e862ef5c1e8b3e3c62891f Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Tue, 10 May 2016 08:16:25 +0200 Subject: [PATCH] Only use js if browser refresh stopped working --- chat.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat.php b/chat.php index 8f412c5..e0ecf3a 100644 --- a/chat.php +++ b/chat.php @@ -284,7 +284,8 @@ function print_start($class='', $ref=0, $url=''){ echo "$H[meta_html]"; if(!empty($url)){ echo ""; - $ref*=1000; + $ref+=5;//only use js if browser refresh stopped working + $ref*=1000;//js uses milliseconds echo ""; } if($class==='init'){