diff options
Diffstat (limited to 'static/js/pichat.js')
| -rw-r--r-- | static/js/pichat.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 97379ef..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); } @@ -632,7 +635,8 @@ function setupUpload(elementId, roomKey) { } }; var onComplete = function(file, response) { - r = $.trim(response); + var r = $.trim(response); + g = r; if (r.match(/FILE_TOO_BIG/)) { var maxSize = r.split(" ")[1] / 1024; alert("Sorry. Your file is just too fucking big. " |
