send button query fixed

This commit is contained in:
Mic 2024-05-15 19:21:41 +02:00
parent a19bc59a2c
commit 9b7f46c8b0

View file

@ -25,7 +25,7 @@ let force_go = false;
async function chatgpt_sendMsg(msg, method ='') {
const textArea = document.querySelector('form textarea'),
sendButton = document.querySelector('form button[class*="bottom"]');
sendButton = document.querySelector('form button[class*="main-surface-secondary"]');
textArea.value = msg;
textArea.dispatchEvent(new Event('input', { bubbles: true })); // enable send button
const delaySend = setInterval(() => {