From a0dcde31f8d274fa4e2f1c748ad311cfc7c36de1 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 13 Apr 2017 19:06:21 +0000 Subject: [PATCH] Fix fetch status catch --- titanembeds/static/js/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/titanembeds/static/js/embed.js b/titanembeds/static/js/embed.js index 7b12074..9934251 100644 --- a/titanembeds/static/js/embed.js +++ b/titanembeds/static/js/embed.js @@ -383,7 +383,7 @@ } }); fet.catch(function(data) { - if (500 <= data.status < 600) { + if (500 <= data.status && data.status < 600) { Materialize.toast('Fetching messages error! Webserver down?', 10000); fetchtimeout = setTimeout(run_fetch_routine, 10000); }