From 07c1ef05d36d2918d70b62718df7a68b91b96f90 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Wed, 11 May 2016 11:36:47 +0800 Subject: [PATCH] site: fix iframe --- site/component/Demo/index.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/component/Demo/index.jsx b/site/component/Demo/index.jsx index 30a75aa820..2d705f26d2 100644 --- a/site/component/Demo/index.jsx +++ b/site/component/Demo/index.jsx @@ -3,6 +3,8 @@ import { Link } from 'react-router'; import classNames from 'classnames'; import * as utils from '../utils'; +const isLocal = location.port; + export default class Demo extends React.Component { constructor(props) { super(props); @@ -39,7 +41,7 @@ export default class Demo extends React.Component {
{ meta.iframe ? -