diff --git a/src/app/app.js b/src/app/app.js index 152b501..f2fba1d 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -105,6 +105,18 @@ class App extends Component { this.forceUpdate() } }) + + window.torrentSocket.emit('p2pStatus', (status) => { + if(status == 0) + return + + window.p2pStatus = status + this.forceUpdate() + }) + window.torrentSocket.on('p2pStatus', (status) => { + window.p2pStatus = status + this.forceUpdate() + }) } componentWillUnmount() { appReady = false; diff --git a/src/app/header.js b/src/app/header.js index dd0efc0..17f35a0 100644 --- a/src/app/header.js +++ b/src/app/header.js @@ -113,10 +113,25 @@ const Header = (props) => { { !window.currentWindow.isModal() && -