mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
🐛 Fix an old bug with the search bar
This commit is contained in:
@@ -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(
|
||||||
`${
|
`${
|
||||||
|
|||||||
Reference in New Issue
Block a user