diff options
Diffstat (limited to 'sysui/cloud/Store/JSONBackend.js')
-rw-r--r-- | sysui/cloud/Store/JSONBackend.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysui/cloud/Store/JSONBackend.js b/sysui/cloud/Store/JSONBackend.js index f4d7936..e48f149 100644 --- a/sysui/cloud/Store/JSONBackend.js +++ b/sysui/cloud/Store/JSONBackend.js @@ -57,21 +57,20 @@ function serverCall(url, data, dataReadyFunction, xhr) { xhr = new XMLHttpRequest() } - console.log("HTTP GET to " + url); + console.log(Logging.sysui, "HTTP GET to " + url); if (xhr.readyState != 0) { xhr.abort(); } xhr.open("GET", url); xhr.onreadystatechange = function() { if (xhr.readyState == XMLHttpRequest.DONE) { - //print(xhr.responseText); if (xhr.responseText !== "") { errorCounter = 0 var data = JSON.parse(xhr.responseText); return dataReadyFunction(data) } else { - print("JSONBackend: " + xhr.status + xhr.statusText) + console.log(Logging.sysui, "JSONBackend: " + xhr.status + xhr.statusText) errorCounter++ if (errorCounter >= 3 && errorFunc) { errorFunc() |