From 7a102f1ee993b8314d72b0e325210ef8e5d137b3 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Mon, 13 Mar 2023 08:13:07 +0800 Subject: [PATCH] d --- searx/webapp.py | 3 +-- searx/webapp1.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index a7e40c998..36afc270e 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -1244,8 +1244,7 @@ const search_type = "''' + search_type + r'''" const net_search = ''' + net_search_str + r''' const add_system = ''' + add_system +r''' ''' # for i in range(1,16): diff --git a/searx/webapp1.py b/searx/webapp1.py index 73e669d94..925064d2a 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -1367,7 +1367,7 @@ function modal_open(url, num) () => { -const iframeDoc = iframe.contentWindow.document; +const iframeDoc = document.querySelector("#iframe-wrapper > iframe").contentWindow.document; const links = iframeDoc.getElementsByTagName('a'); for (let i = 0; i < links.length; i++) {