From: Andrew Dolgov Date: Thu, 4 Nov 2010 18:08:38 +0000 (+0300) Subject: init readability tweaks X-Git-Tag: 1.5.0~410 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=5191a7ce03104935d338beae8c898fe76d164ecb;p=tt-rss.git init readability tweaks --- diff --git a/functions.js b/functions.js index 43de38c9..553c52bf 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...');