]> git.wh0rd.org Git - tt-rss.git/commitdiff
init readability tweaks
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Nov 2010 18:08:38 +0000 (21:08 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 4 Nov 2010 18:08:38 +0000 (21:08 +0300)
functions.js

index 43de38c98689b3581d8da6fc4da583db8d7de3ac..553c52bf73ee7c359292ff436e108c0410203275 100644 (file)
@@ -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...');