summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-04-24 04:28:10 +0100
committerAndrew Dolgov <[email protected]>2007-04-24 04:28:10 +0100
commit7a09510c022a6b28b5a90d97a438ddb81ac20314 (patch)
treedb59f598d104598b8eb8a8b85f4f5056605b4b68 /tt-rss.js
parent23943c9b7e6d1b49e269991752272052c4e88721 (diff)
try to detect sanity check abnormalities (caused by Firebug)
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 2e884d587..c2e9d1cb7 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -14,6 +14,7 @@ var cookie_lifetime = 0;
var active_feed_id = 0;
var active_feed_is_cat = false;
var number_of_feeds = 0;
+var sanity_check_done = false;
var xmlhttp = Ajax.getTransport();
var xmlhttp_ctr = Ajax.getTransport();
@@ -88,7 +89,13 @@ function backend_sanity_check_callback() {
if (xmlhttp.readyState == 4) {
try {
-
+
+ if (sanity_check_done) {
+ fatalError(11, "Sanity check request received twice. You could be running"+
+ " Firebug or some other disrupting extension. Please turn it off.");
+ return;
+ }
+
if (!xmlhttp.responseXML) {
fatalError(3, "[D001, Received reply is not XML]: " + xmlhttp.responseText);
return;
@@ -124,6 +131,8 @@ function backend_sanity_check_callback() {
}
}
+ sanity_check_done = true;
+
init_second_stage();
} catch (e) {