From 301e26bbae93b9b307b94eaab042a6e460da43e0 Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Wed, 8 Apr 2020 21:40:59 +0530 Subject: [PATCH] added removeWhiteSpaces in cashier and improved parse_flo_comments --- cash_payments_handler.html | 6 +++++- index.html | 4 +--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cash_payments_handler.html b/cash_payments_handler.html index b755ff4..76b6107 100644 --- a/cash_payments_handler.html +++ b/cash_payments_handler.html @@ -12053,7 +12053,7 @@ fetch_configs: function(callback) { this.parse_flo_comments(function(floData) { - let RMAssets = floData.trim(); + let RMAssets = removeWhiteSpaces(floData); let floAssetsArray = RMAssets.split("#!#"); if ( @@ -13752,6 +13752,10 @@ }, []); } + function removeWhiteSpaces(text='') { + return text.replace(/\s/g,''); + } + /*CODE_JUNCTION: Operating codes start*/ // Fetch configs from Master Key diff --git a/index.html b/index.html index a6175b9..7ffa8c8 100644 --- a/index.html +++ b/index.html @@ -12250,7 +12250,7 @@ fetch_configs: function(callback) { this.parse_flo_comments(function(floData) { - let RMAssets = floData.trim(); + let RMAssets = removeWhiteSpaces(floData); let floAssetsArray = RMAssets.split("#!#"); if ( @@ -26208,8 +26208,6 @@ break; case "deposit_cash_request_response": - console.info("Info: Backup of cash request is prohibited."); - return false; if ( typeof res_obj.params !== "object" || typeof res_obj.params[0] !== "object"