фантом

This commit is contained in:
Alexey Kasyanchuk
2017-01-14 02:26:21 +03:00
parent 4a4c37e3a5
commit a8a362ffbc
4 changed files with 28 additions and 11 deletions

View File

@ -139,13 +139,13 @@ export default class TorrentPage extends Page {
});
};
componentDidMount() {
window.torrentSocket.emit('torrent', this.props.hash, {files: true}, (data) => {
window.torrentSocket.emit('torrent', this.props.hash, {files: true}, window.customLoader((data) => {
if(data) {
this.torrent = data
this.setTitle('Download ' + this.torrent.name);
this.forceUpdate();
}
});
}));
}
render() {
return (