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) {
return fetch(`${M3UUrl}?${params}`, {
method: 'GET',
keepalive: true,
mode: 'no-cors'
})
.catch(() => {})
.finally(() => setIsStreamPending(false));
const link = window.open(`${M3UUrl}?${params}`, '_blank');
setTimeout(() => link?.close(), 300);
}
const resolver = new Image();