Skip to content

Commit

Permalink
Merge pull request #1734 from weaveworks/no-logo-on-cloud
Browse files Browse the repository at this point in the history
Dont show weavescope logo when running in a frame
  • Loading branch information
davkal authored Aug 1, 2016
2 parents 15cf1e1 + 50fe1f8 commit 546e3ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/app/scripts/components/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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 />
Expand Down

0 comments on commit 546e3ba

Please sign in to comment.