From a6792a4c59450a4f24bccd5c20a5d6bca3c06be0 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Thu, 7 Mar 2024 16:39:54 +0000 Subject: [PATCH] Tweak experiment flag check within legacy JS Profiler panel --- front_end/panels/profiler/ProfilesPanel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front_end/panels/profiler/ProfilesPanel.ts b/front_end/panels/profiler/ProfilesPanel.ts index 8feb5d79c88..f255a2b6594 100644 --- a/front_end/panels/profiler/ProfilesPanel.ts +++ b/front_end/panels/profiler/ProfilesPanel.ts @@ -704,7 +704,7 @@ export class JSProfilerPanel extends ProfilesPanel implements UI.ActionRegistrat const registry = instance; super('js_profiler', [registry.cpuProfileType], 'profiler.js-toggle-recording'); this.splitWidget().mainWidget()?.setMinimumSize(350, 0); - if (Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.REACT_NATIVE_SPECIFIC_UI)) { + if (!Root.Runtime.experiments.isEnabled(Root.Runtime.ExperimentName.JS_PROFILER_TEMP_ENABLE)) { return; } if (Root.Runtime.experiments.isEnabled('jsProfilerTemporarilyEnable')) {