From 54a95363f0531bbe2b000a17fe3590a5824ef284 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 7 Jan 2023 21:02:46 +0800 Subject: [PATCH] Use console.debug --- src/app.jsx | 4 ++-- src/components/compose.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index 8b73c6c3..2cc99938 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -133,7 +133,7 @@ function App() { if (currentModal) return; let timer = setTimeout(() => { const page = document.getElementById(`${currentDeck}-page`); - console.log('focus', currentDeck, page); + console.debug('FOCUS', currentDeck, page); if (page) { page.focus(); } @@ -188,7 +188,7 @@ function App() { { - console.log('router onChange', e); + console.debug('ROUTER onChange', e); // Special handling for Home and Notifications const { url } = e; if (/notifications/i.test(url)) { diff --git a/src/components/compose.jsx b/src/components/compose.jsx index d5d17e8d..2e5a7e30 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -148,7 +148,7 @@ function Compose({ }; const focusTextarea = () => { setTimeout(() => { - console.log('focusing'); + console.debug('FOCUS textarea'); textareaRef.current?.focus(); }, 300); };