fix: handle stream link

This commit is contained in:
Hryvenko Ihor committed 2026-05-01 22:46:37 +03:00
1 parent 067c4a65ef
commit 88c5410945
1 file changed
+2 -7
@@ -68,13 +68,8 @@ const Actions: FC<Props> = ({ torrent, title, provider, show }) => {
}); });
if (isSafari) { if (isSafari) {
return fetch(`${M3UUrl}?${params}`, { const link = window.open(`${M3UUrl}?${params}`, '_blank');
method: 'GET', setTimeout(() => link?.close(), 300);
keepalive: true,
mode: 'no-cors'
})
.catch(() => {})
.finally(() => setIsStreamPending(false));
} }
const resolver = new Image(); const resolver = new Image();