diff options
author | Matthew Shao <me@matshao.com> | 2017-08-08 21:57:42 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-08-08 21:57:42 +0800 |
commit | 756b734ae294da09041303be52f9e9ced0b40d2d (patch) | |
tree | 4f1056796a5e6e3e016687d4ebdfcb63f38c74c3 /web/src/js/components/common | |
parent | 07b3900ac5f057de96e4c511bdb7d8c1754c9be7 (diff) | |
download | mitmproxy-756b734ae294da09041303be52f9e9ced0b40d2d.tar.gz mitmproxy-756b734ae294da09041303be52f9e9ced0b40d2d.tar.bz2 mitmproxy-756b734ae294da09041303be52f9e9ced0b40d2d.zip |
[web] update HideInStatic and some components.
Diffstat (limited to 'web/src/js/components/common')
-rw-r--r-- | web/src/js/components/common/HideInStatic.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/js/components/common/HideInStatic.jsx b/web/src/js/components/common/HideInStatic.jsx index 9f515c97..c5f3bf47 100644 --- a/web/src/js/components/common/HideInStatic.jsx +++ b/web/src/js/components/common/HideInStatic.jsx @@ -1,5 +1,5 @@ import React from 'react' -export default function HideInStatic({className, children }) { - return MITMWEB_STATIC ? null : ( <div className={className}>{children}</div> ) +export default function HideInStatic({ children }) { + return global.MITMWEB_STATIC ? null : [children] } |