From 26ee79246dd1c5baea98f83c864da98c8c09e581 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 13 Apr 2017 00:44:59 +0000 Subject: [PATCH] Fix fetch poll if server down --- 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 d645f97..f804169 100644 --- a/titanembeds/static/js/embed.js +++ b/titanembeds/static/js/embed.js @@ -371,7 +371,7 @@ } }); fet.catch(function(data) { - if (!(data.status != 403 || data.status != 401)) { + if (data.status != 403 || data.status != 401) { fetchtimeout = setTimeout(run_fetch_routine, 10000); } });