diff options
| author | sostler <sbostler@gmail.com> | 2010-04-24 01:33:36 -0400 |
|---|---|---|
| committer | sostler <sbostler@gmail.com> | 2010-04-24 01:33:36 -0400 |
| commit | 955ae988565f2bd4fe1b5491a36e8dfdf2b0193a (patch) | |
| tree | d55acc3ff9c32f0f5325daabdb6dcb9736337d48 /static/js | |
| parent | 21c80596565857c2f31956a7761efb1249dac67e (diff) | |
Added handling for #refresh UNKNOWN_ROOM error (perhaps of questionable utility)
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/pichat.js | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |
