Augment the update example to turn black if the server is not responding.

This commit is contained in:
Brendan Burns
2014-07-24 21:46:35 -07:00
parent cd3ead9122
commit 854b9e14bd

View File

@@ -23,6 +23,7 @@ var updateColor = function($http, server) {
console.log(data);
})
.error(function(data) {
server.color = "#000";
console.log(data);
});
};