log: magnet

This commit is contained in:
ner committed 2024-10-26 22:10:35 +03:00
1 parent 1111712d2c
commit ee782f3845
1 file changed
+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 (