mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 08:48:47 +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;
|
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)) {
|
||||||
|
|
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue