Don't clear errors div content on updates if watchdog is showing an error

This commit is contained in:
Łukasz Mierzwa
2017-03-31 23:50:03 -07:00
parent 4b4c3971b8
commit 582c3344f6

View File

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