From 1f2d5608938cfa1d02f225fe6bb81212c42a05cf Mon Sep 17 00:00:00 2001 From: ajnart Date: Sun, 24 Jul 2022 21:54:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20an=20old=20bug=20with=20th?= =?UTF-8?q?e=20search=20bar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/search/SearchModule.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/search/SearchModule.tsx b/src/modules/search/SearchModule.tsx index 6c0764936..807f2b6ad 100644 --- a/src/modules/search/SearchModule.tsx +++ b/src/modules/search/SearchModule.tsx @@ -93,9 +93,9 @@ export default function SearchBar(props: any) { form.setValues({ query: '' }); setTimeout(() => { if (isYoutube) { - window.open(`https://www.youtube.com/results?search_query=${query.substring(3)}`); + window.open(`https://www.youtube.com/results?search_query=${query.substring(4)}`); } else if (isTorrent) { - window.open(`https://bitsearch.to/search?q=${query.substring(3)}`); + window.open(`https://bitsearch.to/search?q=${query.substring(4)}`); } else { window.open( `${