mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
bingAI fix
This commit is contained in:
parent
ad4cc42d67
commit
ae108ac8bb
2 changed files with 3 additions and 12 deletions
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue