feat(web): web version available again

This commit is contained in:
Alexey Kasyanchuk
2018-04-06 21:01:10 +03:00
parent 1fd0e5fa49
commit e25e8f05a4
3 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ class App extends Component {
<MuiThemeProvider> <MuiThemeProvider>
<div> <div>
{ {
window.currentWindow && !window.currentWindow.isModal() ((window.currentWindow && !window.currentWindow.isModal()) || typeof WEB !== 'undefined')
&& &&
<Header /> <Header />
} }

View File

@ -202,7 +202,7 @@ const Header = (props) => {
} }
/> />
{ {
!window.currentWindow.isModal() ((window.currentWindow && !window.currentWindow.isModal()) || typeof WEB !== 'undefined')
&& &&
<div className='fs0-85 pad0-75 column peers-status' style={{marginLeft: 'auto', marginTop: '-10px', color: window.peers > 0 ? '#42f445' : 'white'}}> <div className='fs0-85 pad0-75 column peers-status' style={{marginLeft: 'auto', marginTop: '-10px', color: window.peers > 0 ? '#42f445' : 'white'}}>
<div>rats peers: {window.peers} [{window.peersTorrents} torrents] {window.peers > 0 ? ' (p2p rats search enabled)' : ' (p2p rats search not available at this moment)'}</div> <div>rats peers: {window.peers} [{window.peersTorrents} torrents] {window.peers > 0 ? ' (p2p rats search enabled)' : ' (p2p rats search not available at this moment)'}</div>

View File

@ -12,7 +12,7 @@ const io = require('socket.io')(server);
server.listen(appConfig.httpPort); server.listen(appConfig.httpPort);
console.log('Listening web server on', appConfig.httpPort, 'port') console.log('Listening web server on', appConfig.httpPort, 'port')
app.use(express.static('web', {index: false})); app.use(express.static('web'));
const socketMessages = {} const socketMessages = {}