feat(web): web version available again
This commit is contained in:
@ -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 />
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
|
@ -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 = {}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user