Merge remote-tracking branch 'alanshaw/david-nsp'

This commit is contained in:
Thaddee Tyl 2014-10-11 15:54:49 +02:00
commit 7212d71fc0

View File

@ -1297,7 +1297,10 @@ cache(function(data, match, sendBadge, request) {
try {
var data = JSON.parse(buffer);
var status = data.status;
if (status === 'notsouptodate') {
if (status === 'insecure') {
badgeData.colorscheme = 'red';
status = 'insecure';
} else if (status === 'notsouptodate') {
badgeData.colorscheme = 'yellow';
status = 'up-to-date';
} else if (status === 'outofdate') {