diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-06-12 13:01:22 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2017-06-12 13:01:22 +0200 |
commit | 99eca6dfedb57024ba57495e6c5fc2dc050df5db (patch) | |
tree | 70317cfca95317c826f96f8eb1aa7e335267638e /web/src/js/components/ContentView/ContentLoader.jsx | |
parent | c1ba6b6c218edcbcf53a8f15be62474a9b34c0a4 (diff) | |
download | mitmproxy-99eca6dfedb57024ba57495e6c5fc2dc050df5db.tar.gz mitmproxy-99eca6dfedb57024ba57495e6c5fc2dc050df5db.tar.bz2 mitmproxy-99eca6dfedb57024ba57495e6c5fc2dc050df5db.zip |
[web] fix contentviews, simplify related logic
Diffstat (limited to 'web/src/js/components/ContentView/ContentLoader.jsx')
-rw-r--r-- | web/src/js/components/ContentView/ContentLoader.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/components/ContentView/ContentLoader.jsx b/web/src/js/components/ContentView/ContentLoader.jsx index 69e4a988..44716e12 100644 --- a/web/src/js/components/ContentView/ContentLoader.jsx +++ b/web/src/js/components/ContentView/ContentLoader.jsx @@ -55,7 +55,7 @@ export default function withContentLoader(View) { return this.setState({request: undefined, content: ""}) } - let requestUrl = MessageUtils.getContentURL(props.flow, props.message, (View.name == 'ViewServer' ? props.contentView : undefined)) + let requestUrl = MessageUtils.getContentURL(props.flow, props.message, props.contentView) // We use XMLHttpRequest instead of fetch() because fetch() is not (yet) abortable. let request = new XMLHttpRequest(); |