From 834f5cfd4b1535aa81d5efc1ae123d0e5ec9d379 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 22 Jan 2024 00:34:23 +0000 Subject: [PATCH] Removed stray debug log statements. --- src/mami.js/colpick/picker.jsx | 1 - src/mami.js/settings.js | 2 +- src/mami.js/sockchat_old.js | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mami.js/colpick/picker.jsx b/src/mami.js/colpick/picker.jsx index 3fdd5dd..70497c4 100644 --- a/src/mami.js/colpick/picker.jsx +++ b/src/mami.js/colpick/picker.jsx @@ -105,7 +105,6 @@ const MamiColourPicker = function(options) { $rq(`.colpick-tab-${name}-container`); }, onSwitch: ctx => { - console.log(ctx); if(ctx.from !== undefined) { ctx.from.elem.classList.toggle('colpick-tab-container-inactive', true); $q(`.colpick-tab-${ctx.from.info.getName()}-button`).classList.toggle('colpick-tab-button-active', false); diff --git a/src/mami.js/settings.js b/src/mami.js/settings.js index 1daeb42..0c64751 100644 --- a/src/mami.js/settings.js +++ b/src/mami.js/settings.js @@ -515,7 +515,7 @@ const UmiSettings = { category: 'debug', type: 'checkbox', mutable: true, - default: false, + default: FUTAMI_DEBUG, }, { id: 'openLegacyChat', diff --git a/src/mami.js/sockchat_old.js b/src/mami.js/sockchat_old.js index fccf24b..c3ff9ae 100644 --- a/src/mami.js/sockchat_old.js +++ b/src/mami.js/sockchat_old.js @@ -45,7 +45,8 @@ Umi.Protocol.SockChat.Protocol = function(views) { if(!sock) return; let msg = opcode; if(data) msg += "\t" + data.join("\t"); - console.log(msg); + if(Umi.Settings.get('dumpPackets')) + console.log(msg); sock.send(msg); }; const sendPing = function() {