Skip to content

Commit 61a251f

Browse files
author
Brian Vaughn
committed
Disable reload-and-profile button if no renderers support profiling
1 parent 7d24e83 commit 61a251f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/devtools/views/Profiler/ReloadAndProfileButton.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ export default function ReloadAndProfileButton() {
1818
}
1919

2020
return (
21-
<Button onClick={reloadAndProfile} title="Reload and start profiling">
21+
<Button
22+
disabled={!store.supportsProfiling}
23+
onClick={reloadAndProfile}
24+
title="Reload and start profiling"
25+
>
2226
<ButtonIcon type="reload" />
2327
</Button>
2428
);

0 commit comments

Comments
 (0)