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) {
|
||||
if (window.console)
|
||||
console.log("ajax error");
|
||||
if (e.length)
|
||||
if (e.trim().length)
|
||||
alert(e);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user