search download fix
This commit is contained in:
@@ -52,7 +52,7 @@ export function GlobalSearch({ query, setQuery, results }: Props) {
|
||||
function handleSelect(result: SearchResult) {
|
||||
setOpen(false)
|
||||
setQuery('')
|
||||
if (result.type === 'episode' && result.href.startsWith('http')) {
|
||||
if (result.href.startsWith('http')) {
|
||||
window.open(result.href, '_blank', 'noreferrer')
|
||||
} else {
|
||||
navigate(result.href)
|
||||
|
||||
Reference in New Issue
Block a user