summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-04 21:08:38 +0300
committerAndrew Dolgov <[email protected]>2010-11-04 21:08:38 +0300
commit5191a7ce03104935d338beae8c898fe76d164ecb (patch)
tree47ff554ac642dd86b290909fddcf89347dafca92 /functions.js
parent9fdeb07e6c69d858a0cbcbf4f8cd101eb22a9004 (diff)
init readability tweaks
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.js b/functions.js
index 43de38c98..553c52bf7 100644
--- a/functions.js
+++ b/functions.js
@@ -2146,7 +2146,7 @@ function backend_sanity_check_callback(transport) {
return init_offline();
}
- var reply = transport.responseXML.firstChild.firstChild;
+ var reply = transport.responseXML.getElementsByTagName("error")[0];
if (!reply) {
fatalError(3, "Sanity check: invalid RPC reply", transport.responseText);
@@ -2161,7 +2161,7 @@ function backend_sanity_check_callback(transport) {
console.log("sanity check ok");
- var params = reply.nextSibling;
+ var params = transport.responseXML.getElementsByTagName("init-params")[0];
if (params) {
console.log('reading init-params...');