chatgptweb: better handling of scrolldown when the button is not present
This commit is contained in:
parent
c06df565b5
commit
8aa77dece6
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ function chatgpt_getRegenerateButton() {
|
|||
function chatpgt_scrollToBottom () {
|
||||
try {
|
||||
//document.querySelector('button[class*="cursor"][class*="bottom"]').click();
|
||||
document.querySelector('path[d^="M12 21C11.7348"]').parentNode.parentNode.click();
|
||||
document.querySelector('path[d^="M12 21C11.7348"]')?.parentNode?.parentNode?.click();
|
||||
}
|
||||
catch (err) { console.error('[ThunderAI] ', err); }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue