From 0f1159d8406ed90e9af981a375706533d48ad790 Mon Sep 17 00:00:00 2001
From: Benoit Lavenier <benoit.lavenier@e-is.pro>
Date: Mon, 15 May 2023 12:00:56 +0200
Subject: [PATCH] [fix] Remove console.log() that open an alter in desktop

---
 www/js/controllers/wot-controllers.js | 4 +++-
 www/js/entities/ws2pmessage.js        | 2 +-
 www/js/services/wallet-services.js    | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/www/js/controllers/wot-controllers.js b/www/js/controllers/wot-controllers.js
index a4d6638da..b252a9c7e 100644
--- a/www/js/controllers/wot-controllers.js
+++ b/www/js/controllers/wot-controllers.js
@@ -301,7 +301,9 @@ function WotLookupController($scope, $state, $q, $timeout, $focus, $location, $i
     if (BMA.regexp.PUBKEY_WITH_CHECKSUM.test(text)) {
       console.debug("[wot] Validating pubkey checksum... ");
       var matches = BMA.regexp.PUBKEY_WITH_CHECKSUM.exec(text);
-      //console.log(matches)
+
+      // DEBUG only
+      //console.debug(matches)
 
       pubkey = matches[1];
       var checksum = matches[2];
diff --git a/www/js/entities/ws2pmessage.js b/www/js/entities/ws2pmessage.js
index 52efe1553..3e0af709c 100644
--- a/www/js/entities/ws2pmessage.js
+++ b/www/js/entities/ws2pmessage.js
@@ -59,7 +59,7 @@ function Ws2pMessage(message) {
 
           // For DEBUG only:
           /*
-          console.log('[http] private {0}, public {1}'.format(
+          console.debug('[http] private {0}, public {1}'.format(
            (that.private && (that.private.useTor ? 'TOR ' : '' ) + (that.private.mode || 'false')) || 'false',
             that.public && ((that.public.useTor ? 'TOR ' : '' ) + (that.public.mode || 'false')) || 'false'
           ), prefix);*/
diff --git a/www/js/services/wallet-services.js b/www/js/services/wallet-services.js
index a323eb1f8..4aa82fae1 100644
--- a/www/js/services/wallet-services.js
+++ b/www/js/services/wallet-services.js
@@ -942,7 +942,7 @@ angular.module('cesium.wallet.services', ['ngApi', 'ngFileSaver', 'cesium.bma.se
         })
         .catch(function(err) {
           loadPromise = null;
-          console.log('TODO 2', err);
+          console.error('[wallet] Failed to load wallet data', err);
           throw err;
         });
     },
-- 
GitLab