mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Update webapp.py
This commit is contained in:
parent
f13a02c6e3
commit
1e39c561e2
1 changed files with 1 additions and 1 deletions
|
@ -876,7 +876,7 @@ var lock_chat=0;
|
||||||
function send_chat()
|
function send_chat()
|
||||||
{
|
{
|
||||||
if(lock_chat!=0) return;
|
if(lock_chat!=0) return;
|
||||||
const knowledge = document.querySelector("#chat > p").innerHTML.replace(/<.*?>.*?<\/.*?>/g, '');
|
const knowledge = document.querySelector("#chat > p").innerHTML.replace(/<.*?>.*?<\/.*?>/g, '') +"\n以上是关键词 ''' + search_query.query + r''' 的搜索结果\n"
|
||||||
let word = document.querySelector("#chat_input").value;
|
let word = document.querySelector("#chat_input").value;
|
||||||
if(word.length==0 || word.length > 140) return;
|
if(word.length==0 || word.length > 140) return;
|
||||||
if(word_last.length>500)word_last.slice(500)
|
if(word_last.length>500)word_last.slice(500)
|
||||||
|
|
Loading…
Add table
Reference in a new issue