We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d02b91 commit 56bd56fCopy full SHA for 56bd56f
src/app/containers/App.js
@@ -27,13 +27,14 @@ export default class App extends Component {
27
</div>
28
: null }
29
<Monitor {...childProps} />
30
-
31
- <div style={styles.buttonBar}>
32
- <Button
33
- Icon={SettingsIcon}
34
- onClick={() => { chrome.runtime.openOptionsPage(); }}
35
- >Settings</Button>
36
- </div>
+ {chrome.runtime.openOptionsPage ?
+ <div style={styles.buttonBar}>
+ <Button
+ Icon={SettingsIcon}
+ onClick={() => { chrome.runtime.openOptionsPage(); }}
+ >Settings</Button>
+ </div>
37
+ : null }
38
39
);
40
}
0 commit comments