From 955ae988565f2bd4fe1b5491a36e8dfdf2b0193a Mon Sep 17 00:00:00 2001 From: sostler Date: Sat, 24 Apr 2010 01:33:36 -0400 Subject: Added handling for #refresh UNKNOWN_ROOM error (perhaps of questionable utility) --- static/js/pichat.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'static/js/pichat.js') diff --git a/static/js/pichat.js b/static/js/pichat.js index 3954e20..6279e48 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -374,6 +374,9 @@ function refresh() { setTimeout(refresh, 1000); }; var onError = function(resp, textStatus, errorThrown) { + var msg = $.trim(resp.responseText); + if (msg == "UNKNOWN_ROOM") + location.href = "http://dump.fm"; if (IsAdmin && window.console) { console.error(resp, textStatus, errorThrown); } -- cgit v1.2.3-70-g09d2