Stop polling if fluentd-ui server is unreachable

This commit is contained in:
uu59 2014-06-09 17:07:26 +09:00
parent 161ca568c8
commit f20e2a8906

View File

@ -17,7 +17,10 @@
self.alerts = alerts;
})["catch"](function(xhr){
if(xhr.status === 401) {
clearInterval(timer);
clearInterval(timer); // signed out
}
if(xhr.status === 0) {
clearInterval(timer); // server unreachable (maybe down)
}
});
};