mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 00:38:49 +01:00
Use console.debug
This commit is contained in:
parent
33176c5ea7
commit
54a95363f0
2 changed files with 3 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
|
@ -148,7 +148,7 @@ function Compose({
|
|||
};
|
||||
const focusTextarea = () => {
|
||||
setTimeout(() => {
|
||||
console.log('focusing');
|
||||
console.debug('FOCUS textarea');
|
||||
textareaRef.current?.focus();
|
||||
}, 300);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue