diff --git a/js/app.js b/js/app.js index 2eef276..4abee7e 100644 --- a/js/app.js +++ b/js/app.js @@ -27,7 +27,7 @@ function callRequest(action, section, message) { var splitLabel = xhr.responseText.split("\n").reverse(); label.classList.remove('label-warning'); - if (splitLabel[1] !== 'nothing to commit (working directory clean)') { + if (splitLabel[1] !== 'nothing to commit (working directory clean)' || xhr.responseText.match(/by [0-9]* commits/)) { label.classList.add('label-important'); label.innerHTML = 'Update needed'; } else {