Use console.debug

This commit is contained in:
Lim Chee Aun 2023-01-07 21:02:46 +08:00
parent 33176c5ea7
commit 54a95363f0
2 changed files with 3 additions and 3 deletions

View file

@ -133,7 +133,7 @@ function App() {
if (currentModal) return; if (currentModal) return;
let timer = setTimeout(() => { let timer = setTimeout(() => {
const page = document.getElementById(`${currentDeck}-page`); const page = document.getElementById(`${currentDeck}-page`);
console.log('focus', currentDeck, page); console.debug('FOCUS', currentDeck, page);
if (page) { if (page) {
page.focus(); page.focus();
} }
@ -188,7 +188,7 @@ function App() {
<Router <Router
history={createHashHistory()} history={createHashHistory()}
onChange={(e) => { onChange={(e) => {
console.log('router onChange', e); console.debug('ROUTER onChange', e);
// Special handling for Home and Notifications // Special handling for Home and Notifications
const { url } = e; const { url } = e;
if (/notifications/i.test(url)) { if (/notifications/i.test(url)) {

View file

@ -148,7 +148,7 @@ function Compose({
}; };
const focusTextarea = () => { const focusTextarea = () => {
setTimeout(() => { setTimeout(() => {
console.log('focusing'); console.debug('FOCUS textarea');
textareaRef.current?.focus(); textareaRef.current?.focus();
}, 300); }, 300);
}; };