diff --git a/searx/webapp.py b/searx/webapp.py index a2652bf2e..58b9df17e 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1755,7 +1755,7 @@ function send_modalchat(elem) }) for (st in fulltext) { - if(keytextres.(fulltext[st])==-1) + if(keytextres.indexOf(fulltext[st])==-1) keytextres.unshift(fulltext[st]) } keySentencesCount = 0; diff --git a/searx/webapp1.py b/searx/webapp1.py index a2652bf2e..58b9df17e 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -1755,7 +1755,7 @@ function send_modalchat(elem) }) for (st in fulltext) { - if(keytextres.(fulltext[st])==-1) + if(keytextres.indexOf(fulltext[st])==-1) keytextres.unshift(fulltext[st]) } keySentencesCount = 0;