aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/common/HideInStatic.jsx
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2017-08-08 21:57:42 +0800
committerMatthew Shao <me@matshao.com>2017-08-08 21:57:42 +0800
commit756b734ae294da09041303be52f9e9ced0b40d2d (patch)
tree4f1056796a5e6e3e016687d4ebdfcb63f38c74c3 /web/src/js/components/common/HideInStatic.jsx
parent07b3900ac5f057de96e4c511bdb7d8c1754c9be7 (diff)
downloadmitmproxy-756b734ae294da09041303be52f9e9ced0b40d2d.tar.gz
mitmproxy-756b734ae294da09041303be52f9e9ced0b40d2d.tar.bz2
mitmproxy-756b734ae294da09041303be52f9e9ced0b40d2d.zip
[web] update HideInStatic and some components.
Diffstat (limited to 'web/src/js/components/common/HideInStatic.jsx')
-rw-r--r--web/src/js/components/common/HideInStatic.jsx4
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]
}