Disable reload-and-profile button if no renderers support profiling
Brian Vaughn committed
Mar 27, 2019 at 09:50 UTC
61a251f01af4012e91ce61f415b86127011b75b9
1 file changed
+5
-1
src/devtools/views/Profiler/ReloadAndProfileButton.js
+5
-1
@@ -18,7 +18,11 @@ export default function ReloadAndProfileButton() {
18
}
19
20
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
+ >
26
<ButtonIcon type="reload" />
27
</Button>
28
);