From 2f7f69a817f10d60c893c46a0c977d46f300754c Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 18 Sep 2018 13:04:44 +0200 Subject: [PATCH] Bug corrected, not calling the server for initialize --- Exchange/ExchangeAPI.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Exchange/ExchangeAPI.js b/Exchange/ExchangeAPI.js index 7c3e79770..9c5e8c9e0 100644 --- a/Exchange/ExchangeAPI.js +++ b/Exchange/ExchangeAPI.js @@ -19,19 +19,11 @@ function initialize(callBackFunction) { - let path = "ExchangeAPI" + "/" - + "initialize" + "/" - + window.SESSION_TOKEN - ; + /* When this initialized is called from the Browser, there is no need to send it to the server since the server will + anyways initialize this library at each method call. */ - callServer(undefined, path + "/NO-LOG", onServerResponse); - - function onServerResponse(pServerResponse) { - - let response = JSON.parse(pServerResponse); - callBackFunction(response); - - } + callBackFunction(window.DEFAULT_OK_RESPONSE); + } function getTicker(pMarket, callBackFunction) {