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); }