From 1df544dbdaaf6b9611137d42f352f378100503f8 Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Mon, 1 Aug 2016 15:09:20 +0200 Subject: [PATCH 1/2] Dont show weavescope logo when running in a frame The logo wont show when running in a service From 50fe1f8af2ec21597c4548b5c7ca12d7954e4102 Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Mon, 1 Aug 2016 15:19:09 +0200 Subject: [PATCH 2/2] Hide logo when in frame --- client/app/scripts/components/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/app/scripts/components/app.js b/client/app/scripts/components/app.js index aa07737a4..29f77267e 100644 --- a/client/app/scripts/components/app.js +++ b/client/app/scripts/components/app.js @@ -101,6 +101,7 @@ class App extends React.Component { render() { const { showingDetails, showingHelp, showingMetricsSelector, showingNetworkSelector, showingTerminal } = this.props; + const isIframe = window !== window.top; return (
@@ -114,9 +115,9 @@ class App extends React.Component {
- + {!isIframe && - + }