summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/js/pichat.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 74b959f..85fa398 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 (typeof Version !== 'undefined' && Version != json.v) {
+ if (json.v && (typeof Version == 'undefined' || Version != json.v)) {
location.reload();
}