search download fix
This commit is contained in:
1 parent
c4645e3475
commit
75d490020b
3 files changed
+21
-12
No files matched your search
@@ -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