diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-11-28 19:16:47 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-11-28 19:16:47 +0100 |
commit | c39b6e4277357c9da1dfd5e3e8c41b5b3427e0ce (patch) | |
tree | 21a713fb0974242dc0cf7023eac1dfda7865419c /web/src/js/components/flowdetail.jsx.js | |
parent | 7ca1ac0f3b7856c0ae44bfbf3b27ae4a424a1cc2 (diff) | |
download | mitmproxy-c39b6e4277357c9da1dfd5e3e8c41b5b3427e0ce.tar.gz mitmproxy-c39b6e4277357c9da1dfd5e3e8c41b5b3427e0ce.tar.bz2 mitmproxy-c39b6e4277357c9da1dfd5e3e8c41b5b3427e0ce.zip |
web: various fixes, add clear button
Diffstat (limited to 'web/src/js/components/flowdetail.jsx.js')
-rw-r--r-- | web/src/js/components/flowdetail.jsx.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/src/js/components/flowdetail.jsx.js b/web/src/js/components/flowdetail.jsx.js index 5c4168a9..74522f57 100644 --- a/web/src/js/components/flowdetail.jsx.js +++ b/web/src/js/components/flowdetail.jsx.js @@ -4,9 +4,9 @@ var FlowDetailNav = React.createClass({ var items = this.props.tabs.map(function (e) { var str = e.charAt(0).toUpperCase() + e.slice(1); var className = this.props.active === e ? "active" : ""; - var onClick = function (e) { + var onClick = function (event) { this.props.selectTab(e); - e.preventDefault(); + event.preventDefault(); }.bind(this); return <a key={e} href="#" @@ -302,7 +302,6 @@ var FlowDetail = React.createClass({ ); }, render: function () { - var flow = JSON.stringify(this.props.flow, null, 2); var Tab = tabs[this.props.active]; return ( <div className="flow-detail" onScroll={this.adjustHead}> |