File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import toggleTestToolsModal from '@userActions/TestTool';
10
10
import CONST from '@src/CONST' ;
11
11
import ONYXKEYS from '@src/ONYXKEYS' ;
12
12
import ROUTES from '@src/ROUTES' ;
13
+ import { getBrowser , isChromeIOS } from '@libs/Browser' ;
13
14
import Button from './Button' ;
14
15
import ClientSideLoggingToolMenu from './ClientSideLoggingToolMenu' ;
15
16
import Modal from './Modal' ;
@@ -26,6 +27,17 @@ function TestToolsModal() {
26
27
const styles = useThemeStyles ( ) ;
27
28
const { translate} = useLocalize ( ) ;
28
29
30
+ const shouldShowProfileTool = ( ) => {
31
+ const browser = getBrowser ( ) ;
32
+ const isSafariOrFirefox = browser === CONST . BROWSER . SAFARI || browser === CONST . BROWSER . FIREFOX ;
33
+
34
+ if ( isSafariOrFirefox || isChromeIOS ( ) ) {
35
+ return false ;
36
+ }
37
+
38
+ return true ;
39
+ } ;
40
+
29
41
return (
30
42
< Modal
31
43
isVisible = { ! ! isTestToolsModalOpen }
@@ -39,7 +51,7 @@ function TestToolsModal() {
39
51
>
40
52
{ translate ( 'initialSettingsPage.troubleshoot.releaseOptions' ) }
41
53
</ Text >
42
- < ProfilingToolMenu />
54
+ { shouldShowProfileTool ( ) && < ProfilingToolMenu /> }
43
55
< ClientSideLoggingToolMenu />
44
56
{ ! ! shouldStoreLogs && (
45
57
< TestToolRow title = { translate ( 'initialSettingsPage.troubleshoot.debugConsole' ) } >
You can’t perform that action at this time.
0 commit comments