From b546e6b1d33b07d0eb8530a96a899140a7b1b535 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Wed, 31 May 2017 12:39:38 +0200 Subject: [PATCH] Forgot parameters to Get() --- public/js/query.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/js/query.js b/public/js/query.js index c53d106c..d3bd1cdf 100644 --- a/public/js/query.js +++ b/public/js/query.js @@ -3,7 +3,6 @@ var Query = { MaxConsecutingFailing:-1, Get: function(url, renderer, callback) { var xhr = new XMLHttpRequest(); - console.log(url) xhr.open('GET', url, true); xhr.responseType = 'json'; xhr.onload = function(e) { @@ -15,7 +14,7 @@ var Query = { console.log("Error when refresh") Query.Failed++; console.log("Attempt to refresh "+Query.Failed+"..."); - if ((Query.MaxConsecutingFailing == -1) || (Query.Failed < Query.MaxConsecutingFailing)) Query.Get(); + if ((Query.MaxConsecutingFailing == -1) || (Query.Failed < Query.MaxConsecutingFailing)) Query.Get(url, renderer, callback); else console.error("Too many attempts, stopping...") } };