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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user