aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/ProxyApp.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/components/ProxyApp.jsx')
-rw-r--r--web/src/js/components/ProxyApp.jsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/src/js/components/ProxyApp.jsx b/web/src/js/components/ProxyApp.jsx
index b5d59b76..11c321e7 100644
--- a/web/src/js/components/ProxyApp.jsx
+++ b/web/src/js/components/ProxyApp.jsx
@@ -3,7 +3,7 @@ import ReactDOM from 'react-dom'
import _ from 'lodash'
import { connect } from 'react-redux'
-import { connect as wsConnect } from '../ducks/websocket'
+import { init as appInit, destruct as appDestruct } from '../ducks/app'
import Header from './Header'
import EventLog from './EventLog'
import Footer from './Footer'
@@ -37,7 +37,7 @@ class ProxyAppMain extends Component {
}
componentWillMount() {
- this.props.wsConnect()
+ this.props.appInit()
}
/**
@@ -79,6 +79,7 @@ class ProxyAppMain extends Component {
* @todo stop listening to window's key events
*/
componentWillUnmount() {
+ this.props.appDestruct()
this.settingsStore.removeListener('recalculate', this.onSettingsChange)
}
@@ -168,6 +169,7 @@ export default connect(
showEventLog: state.eventLog.visible
}),
{
- wsConnect,
+ appInit,
+ appDestruct,
}
)(ProxyAppMain)