правильный тайтл на страницах

This commit is contained in:
Alexey Kasyanchuk
2017-01-14 00:11:57 +03:00
parent 1b799747eb
commit 8cfcdbaf3c
6 changed files with 38 additions and 11 deletions

View File

@ -172,7 +172,7 @@ export default class RecentTorrents extends Component {
this.state = { pause: false }
}
componentDidMount() {
window.torrentSocket.emit('recentTorrents', (data) => {
window.torrentSocket.emit('recentTorrents', window.customLoader((data) => {
if(data) {
this.torrents = data;
this.forceUpdate();
@ -206,7 +206,7 @@ export default class RecentTorrents extends Component {
setTimeout(this.displayNewTorrent, speed);
}
this.displayNewTorrent();
});
}));
this.newTorrentFunc = (torrent) => {
if(this.displayQueue.length < this.maxDisplaySize) {
this.displayQueue.push(torrent);