bingAI fix

This commit is contained in:
James Feng Cao 2023-04-25 22:28:16 +08:00
parent ad4cc42d67
commit ae108ac8bb
2 changed files with 3 additions and 12 deletions

View file

@ -295,14 +295,5 @@ restartNewChat.onclick = async () => {
restart_button.onclick(); restart_button.onclick();
} }
async function searchSuggestionsAddOnclick(){
let adds = document.querySelectorAll("#SearchSuggestions>a");
for(let add in adds){
adds[add].onclick = (event)=>{
if(searchSuggestions.style.opacity>=1){
send(event.target.innerHTML);
}
}
}
}

View file

@ -412,7 +412,7 @@ function porserSuggestedResponses(suggestedResponses) {
for (let i = 0; i < suggestedResponses.length; i++) { for (let i = 0; i < suggestedResponses.length; i++) {
let a = document.createElement('a'); let a = document.createElement('a');
a.innerHTML = suggestedResponses[i].text; a.innerHTML = suggestedResponses[i].text;
a.onclick = (event)=>{send(event.target.innerHTML);}
searchSuggestions.appendChild(a); searchSuggestions.appendChild(a);
} }
searchSuggestionsAddOnclick(); }
}