From 20c9ef9fb841a85e688371ee37c6f6c95f4b4500 Mon Sep 17 00:00:00 2001
From: Vincent Nivoliers <vincent.nivoliers@gmail.com>
Date: Wed, 21 Sep 2016 01:05:51 +0200
Subject: [PATCH] reactivated synchronous request for icecat

---
 js/explorer.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/js/explorer.js b/js/explorer.js
index 6f5a70c..e3af38f 100644
--- a/js/explorer.js
+++ b/js/explorer.js
@@ -130,10 +130,11 @@ function openXML(filename, handler) {
     xhttp=new ActiveXObject("Microsoft.XMLHTTP") ;
   }
   xhttp.addEventListener("error", handle_request_error);
-  xhttp.addEventListener("readystatechange", function() {handler(this);});
-  xhttp.open("GET",filename) ;
+  //xhttp.addEventListener("readystatechange", function() {handler(this);});
+  xhttp.open("GET",filename, false) ;
   xhttp.overrideMimeType('text/xml');
   xhttp.send(null) ;
+  handler(xhttp) ;
 }
 
 /* exploration */
-- 
GitLab