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 +}