From 284a0ebebe105872f72d870e39a90d5eabc37706 Mon Sep 17 00:00:00 2001 From: jeena Date: Thu, 5 Sep 2013 10:47:18 +0200 Subject: [PATCH] no alert on network error 0, doesn't help anyone --- js/TinyTinyRSS.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/TinyTinyRSS.js b/js/TinyTinyRSS.js index a4b3da6..79e1586 100644 --- a/js/TinyTinyRSS.js +++ b/js/TinyTinyRSS.js @@ -52,7 +52,8 @@ TinyTinyRSS.prototype.doOperation = function(operation, new_options, callback) { if(callback) callback(JSON.parse(xhr.responseText).content); } else { - alert("error: " + xhr.status + " " + xhr.statusText); + if(xhr.status != 0) + alert("error: " + xhr.status + " " + xhr.statusText); if(callback) callback(null); }