From a8d7f74f358f53e1caf4d21f06181c418e9f748d Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Wed, 1 Mar 2023 19:55:23 +0800 Subject: [PATCH] x --- searx/webapp.py | 2 +- searx/webapp1.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;