1
0
Fork 0

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;
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() {
<Router
history={createHashHistory()}
onChange={(e) => {
console.log('router onChange', e);
console.debug('ROUTER onChange', e);
// Special handling for Home and Notifications
const { url } = e;
if (/notifications/i.test(url)) {

View file

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