Merge pull request #1734 from weaveworks/no-logo-on-cloud

Dont show weavescope logo when running in a frame
This commit is contained in:
David
2016-08-01 16:55:17 +02:00
committed by GitHub

View File

@@ -101,6 +101,7 @@ class App extends React.Component {
render() {
const { showingDetails, showingHelp, showingMetricsSelector, showingNetworkSelector,
showingTerminal } = this.props;
const isIframe = window !== window.top;
return (
<div className="app">
@@ -114,9 +115,9 @@ class App extends React.Component {
<div className="header">
<div className="logo">
<svg width="100%" height="100%" viewBox="0 0 1089 217">
{!isIframe && <svg width="100%" height="100%" viewBox="0 0 1089 217">
<Logo />
</svg>
</svg>}
</div>
<Search />
<Topologies />