From e04d0889100c988f6517e48daadb61c0d9460762 Mon Sep 17 00:00:00 2001 From: Oleg Baranov Date: Thu, 30 Nov 2023 21:56:39 +0400 Subject: [PATCH] Update ModalAddTorrent.tsx --- frontend/src/components/ModalAddTorrent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/ModalAddTorrent.tsx b/frontend/src/components/ModalAddTorrent.tsx index 6ebfc00..ab524bd 100644 --- a/frontend/src/components/ModalAddTorrent.tsx +++ b/frontend/src/components/ModalAddTorrent.tsx @@ -60,7 +60,7 @@ export class AddTorrentModal extends Component { startCheckFiles = (hash: string) => { // check header availability every 100 ms, and load files list when we get it - this.inter = setInterval(() => { + this.inter = window.setInterval(() => { CheckHeader(hash).then(has => { if (has) { GetFiles(hash).then((tree) => { @@ -246,4 +246,4 @@ export class AddTorrentModal extends Component { )); } -} \ No newline at end of file +}