From a0a50416bfb3072244269189b3293a1b690d13e0 Mon Sep 17 00:00:00 2001 From: sostler Date: Sun, 25 Apr 2010 11:53:08 -0400 Subject: Reload chatroom when json.v exists and var Version is undefined or doesn't equal json.v --- static/js/pichat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/js') diff --git a/static/js/pichat.js b/static/js/pichat.js index db49bb1..74b959f 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -352,7 +352,7 @@ function updateTopic(newTopic) { function refresh() { var onSuccess = function(json) { try { - if (Version != json.v) { + if (typeof Version !== 'undefined' && Version != json.v) { location.reload(); } -- cgit v1.2.3-70-g09d2