Skip to content

Commit 56bd56f

Browse files
committed
Don't show buttons from chrome devtools panel
1 parent 7d02b91 commit 56bd56f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/app/containers/App.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ export default class App extends Component {
2727
</div>
2828
: null }
2929
<Monitor {...childProps} />
30-
31-
<div style={styles.buttonBar}>
32-
<Button
33-
Icon={SettingsIcon}
34-
onClick={() => { chrome.runtime.openOptionsPage(); }}
35-
>Settings</Button>
36-
</div>
30+
{chrome.runtime.openOptionsPage ?
31+
<div style={styles.buttonBar}>
32+
<Button
33+
Icon={SettingsIcon}
34+
onClick={() => { chrome.runtime.openOptionsPage(); }}
35+
>Settings</Button>
36+
</div>
37+
: null }
3738
</div>
3839
);
3940
}

0 commit comments

Comments
 (0)