fix: prevent new tab from being focused
This commit is contained in:
1 parent
bd708ff8a5
commit
cc3a83d767
1 file changed
+2
-1
+2
-1
@@ -61,7 +61,8 @@ const Actions: FC<Props> = ({ torrent, backdrop, title, provider, playerEntryId,
|
|||||||
const handleM3ULink = () => {
|
const handleM3ULink = () => {
|
||||||
const link = window.open(
|
const link = window.open(
|
||||||
`${M3UUrl}${encodeURIComponent(`${streamUrl}/stream?m3u&link=${encodeURIComponent(magnet)}`)}`,
|
`${M3UUrl}${encodeURIComponent(`${streamUrl}/stream?m3u&link=${encodeURIComponent(magnet)}`)}`,
|
||||||
'_blank'
|
'_blank',
|
||||||
|
'noopener,noreferrer'
|
||||||
);
|
);
|
||||||
setTimeout(() => link?.close(), 1000);
|
setTimeout(() => link?.close(), 1000);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user