no alert on network error 0, doesn't help anyone
This commit is contained in:
parent
c76c791201
commit
284a0ebebe
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ TinyTinyRSS.prototype.doOperation = function(operation, new_options, callback) {
|
||||||
if(callback)
|
if(callback)
|
||||||
callback(JSON.parse(xhr.responseText).content);
|
callback(JSON.parse(xhr.responseText).content);
|
||||||
} else {
|
} else {
|
||||||
alert("error: " + xhr.status + " " + xhr.statusText);
|
if(xhr.status != 0)
|
||||||
|
alert("error: " + xhr.status + " " + xhr.statusText);
|
||||||
if(callback)
|
if(callback)
|
||||||
callback(null);
|
callback(null);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue