diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-06-17 21:03:19 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-17 21:03:19 -0700 |
commit | ce53799c623a8ac74631f6fc4ab8fb134bff1cc8 (patch) | |
tree | 32651f7068556a7c8c4b67aa77097b9d7da4d83f /web/src/js/components/ProxyApp.jsx | |
parent | 965b27b52942cc6bf082355a1540bc0f960f1043 (diff) | |
download | mitmproxy-ce53799c623a8ac74631f6fc4ab8fb134bff1cc8.tar.gz mitmproxy-ce53799c623a8ac74631f6fc4ab8fb134bff1cc8.tar.bz2 mitmproxy-ce53799c623a8ac74631f6fc4ab8fb134bff1cc8.zip |
simplify settings reducer
Diffstat (limited to 'web/src/js/components/ProxyApp.jsx')
-rw-r--r-- | web/src/js/components/ProxyApp.jsx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/web/src/js/components/ProxyApp.jsx b/web/src/js/components/ProxyApp.jsx index 8129b0f0..39cadff5 100644 --- a/web/src/js/components/ProxyApp.jsx +++ b/web/src/js/components/ProxyApp.jsx @@ -3,7 +3,6 @@ import ReactDOM from 'react-dom' import _ from 'lodash' import { connect } from 'react-redux' -import { fetch as fetchSettings } from '../ducks/settings' import Header from './Header' import EventLog from './EventLog' import Footer from './Footer' @@ -50,12 +49,7 @@ class ProxyAppMain extends Component { return _.clone(this.props.location.query) } - componentWillMount() { - this.props.fetchSettings(); - } - /** - * @todo connect websocket here * @todo listen to window's key events */ componentDidMount() { @@ -139,8 +133,5 @@ export default connect( state => ({ showEventLog: state.eventLog.visible, settings: state.settings.settings, - }), - { - fetchSettings, - } + }) )(ProxyAppMain) |