mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1694970 - [devtools] Hide profiler panel onboarding message in about:debugging r=julienw
The new profiler UI has always been used in about:debugging and the onboarding message should not be displayed here. Differential Revision: https://phabricator.services.mozilla.com/D109541
This commit is contained in:
parent
f54ee076ae
commit
f63d98b0ac
@ -101,6 +101,15 @@ class OnboardingMessage extends PureComponent {
|
||||
return null;
|
||||
}
|
||||
|
||||
/** @type {any} */
|
||||
const anyWindow = window;
|
||||
|
||||
// If gToolbox is not defined on window, the component is rendered in
|
||||
// about:debugging, and no onboarding message should be displayed.
|
||||
if (!anyWindow.gToolbox) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const learnMoreLink = button({
|
||||
className: "perf-external-link",
|
||||
onClick: this.handleLearnMoreClick,
|
||||
|
Loading…
Reference in New Issue
Block a user