mirror of https://github.com/vector-im/riot-web
Remove unused iframeSrc from HomePage
parent
30395f064d
commit
0bb3843726
|
@ -39,7 +39,6 @@ class HomePage extends React.Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
iframeSrc: '',
|
|
||||||
page: '',
|
page: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -87,21 +86,11 @@ class HomePage extends React.Component {
|
||||||
mx_HomePage_guest: isGuest,
|
mx_HomePage_guest: isGuest,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.state.iframeSrc) {
|
const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper");
|
||||||
return (
|
return <GeminiScrollbarWrapper autoshow={true} className={classes}>
|
||||||
<div className={classes}>
|
<div className="mx_HomePage_body" dangerouslySetInnerHTML={{ __html: this.state.page }}>
|
||||||
<iframe src={ this.state.iframeSrc } />
|
</div>
|
||||||
</div>
|
</GeminiScrollbarWrapper>;
|
||||||
);
|
|
||||||
} else {
|
|
||||||
const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper");
|
|
||||||
return (
|
|
||||||
<GeminiScrollbarWrapper autoshow={true} className={classes}>
|
|
||||||
<div className="mx_HomePage_body" dangerouslySetInnerHTML={{ __html: this.state.page }}>
|
|
||||||
</div>
|
|
||||||
</GeminiScrollbarWrapper>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue