log: magnet
This commit is contained in:
1 parent
1111712d2c
commit
ee782f3845
1 file changed
+4
-1
+4
-1
@@ -36,7 +36,10 @@ const Actions: FC<Props> = ({ torrent, backdrop, title, provider }) => {
|
|||||||
const prefetchMagnet = (handler: (magnet: string) => void) => () => {
|
const prefetchMagnet = (handler: (magnet: string) => void) => () => {
|
||||||
if (!torrent.download) return handler(torrent.magnet);
|
if (!torrent.download) return handler(torrent.magnet);
|
||||||
|
|
||||||
return mutateAsync(torrent.download).then((magnet) => handler(magnet));
|
return mutateAsync(torrent.download).then((magnet) => {
|
||||||
|
console.log('magnet', magnet);
|
||||||
|
return handler(magnet);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in new issue
Block a user