Fix !
This commit is contained in:
parent
047078a09e
commit
87377f0c62
@ -32,7 +32,7 @@ function callRequest(action, section, message) {
|
|||||||
|
|
||||||
var splitLabel = xhr.responseText.split("\n").reverse();
|
var splitLabel = xhr.responseText.split("\n").reverse();
|
||||||
label.classList.remove('label-warning');
|
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.classList.add('label-important');
|
||||||
label.innerHTML = 'Update needed';
|
label.innerHTML = 'Update needed';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user