Remove white space before testing length
This commit is contained in:
parent
bafa8fcfd3
commit
7bac247e48
|
@ -139,7 +139,7 @@ function execopkg(arg, pkg)
|
||||||
error: function(_, _, e) {
|
error: function(_, _, e) {
|
||||||
if (window.console)
|
if (window.console)
|
||||||
console.log("ajax error");
|
console.log("ajax error");
|
||||||
if (e.length)
|
if (e.trim().length)
|
||||||
alert(e);
|
alert(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue