From 87377f0c62b24388014b909a49469d8baaf0ce8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xe=CC=81fir=20Destiny?= Date: Fri, 1 Nov 2013 00:49:32 +0100 Subject: [PATCH] Fix ! --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 800d92d..1a1139c 100644 --- a/js/app.js +++ b/js/app.js @@ -32,7 +32,7 @@ function callRequest(action, section, message) { var splitLabel = xhr.responseText.split("\n").reverse(); label.classList.remove('label-warning'); - if (splitLabel[1].match(/nothing to commit/) || xhr.responseText.match(/by [0-9]* commit/)) { + if (!splitLabel[1].match(/nothing to commit/) || xhr.responseText.match(/by [0-9]* commit/)) { label.classList.add('label-important'); label.innerHTML = 'Update needed'; } else {