From 582c3344f62899c576bf0fd5ed4a2662548d2d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 31 Mar 2017 23:50:03 -0700 Subject: [PATCH] Don't clear errors div content on updates if watchdog is showing an error --- assets/static/unsee.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/static/unsee.js b/assets/static/unsee.js index c2b6b2080..b3bda512f 100644 --- a/assets/static/unsee.js +++ b/assets/static/unsee.js @@ -132,8 +132,10 @@ var Unsee = (function(params) { updateCompleted(); Watchdog.Pong(moment(resp['timestamp']); Unsee.WaitForNextReload(); - $(selectors.errors).html(''); - $(selectors.errors).hide(''); + if (!Watchdog.IsFatal()) { + $(selectors.errors).html(''); + $(selectors.errors).hide(''); + } } catch (err) { Counter.Unknown(); handleError(err);