🐛 Fix an old bug with the search bar

This commit is contained in:
ajnart
2022-07-24 21:54:42 +02:00
parent 87c55f264e
commit 1f2d560893

View File

@@ -93,9 +93,9 @@ export default function SearchBar(props: any) {
form.setValues({ query: '' }); form.setValues({ query: '' });
setTimeout(() => { setTimeout(() => {
if (isYoutube) { 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) { } else if (isTorrent) {
window.open(`https://bitsearch.to/search?q=${query.substring(3)}`); window.open(`https://bitsearch.to/search?q=${query.substring(4)}`);
} else { } else {
window.open( window.open(
`${ `${