diff options
author | Jason <jason.daurus@gmail.com> | 2016-06-17 07:57:06 +0800 |
---|---|---|
committer | Jason <jason.daurus@gmail.com> | 2016-06-17 07:57:06 +0800 |
commit | 034287edcf00eb734cb67e62de58c3bfebf6bb44 (patch) | |
tree | 198264689fc77b8fe8c54a5c95114da7ef5a1651 /web/src/js/components/ProxyApp.jsx | |
parent | 7a78970d10ab2dfc9b86dd30a76fb1513f43dd35 (diff) | |
download | mitmproxy-034287edcf00eb734cb67e62de58c3bfebf6bb44.tar.gz mitmproxy-034287edcf00eb734cb67e62de58c3bfebf6bb44.tar.bz2 mitmproxy-034287edcf00eb734cb67e62de58c3bfebf6bb44.zip |
[web] clean up
Diffstat (limited to 'web/src/js/components/ProxyApp.jsx')
-rw-r--r-- | web/src/js/components/ProxyApp.jsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/web/src/js/components/ProxyApp.jsx b/web/src/js/components/ProxyApp.jsx index 967cc921..c458639d 100644 --- a/web/src/js/components/ProxyApp.jsx +++ b/web/src/js/components/ProxyApp.jsx @@ -13,7 +13,6 @@ class ProxyAppMain extends Component { static childContextTypes = { returnFocus: PropTypes.func.isRequired, - location: PropTypes.object.isRequired, } static contextTypes = { @@ -89,10 +88,7 @@ class ProxyAppMain extends Component { * @todo use props */ getChildContext() { - return { - returnFocus: this.focus, - location: this.props.location - } + return { returnFocus: this.focus } } /** @@ -106,6 +102,7 @@ class ProxyAppMain extends Component { /** * @todo move to actions + * @todo bind on window */ onKeyDown(e) { let name = null |