mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 11:05:21 +00:00
Tweak debug menu labels
Reviewed By: @kmagiera Differential Revision: D2430890
This commit is contained in:
parent
c03dad19e7
commit
56f77ec6ee
@ -286,7 +286,7 @@ RCT_EXPORT_MODULE()
|
||||
}]];
|
||||
} else {
|
||||
BOOL isDebuggingInChrome = _executorClass && _executorClass == chromeExecutorClass;
|
||||
NSString *debugTitleChrome = isDebuggingInChrome ? @"Disable Chrome Debugging" : @"Debug in Chrome";
|
||||
NSString *debugTitleChrome = isDebuggingInChrome ? @"Stop Chrome Debugging" : @"Debug in Chrome";
|
||||
[items addObject:[[RCTDevMenuItem alloc] initWithTitle:debugTitleChrome handler:^{
|
||||
self.executorClass = isDebuggingInChrome ? Nil : chromeExecutorClass;
|
||||
}]];
|
||||
@ -294,7 +294,7 @@ RCT_EXPORT_MODULE()
|
||||
|
||||
Class safariExecutorClass = NSClassFromString(@"RCTWebViewExecutor");
|
||||
BOOL isDebuggingInSafari = _executorClass && _executorClass == safariExecutorClass;
|
||||
NSString *debugTitleSafari = isDebuggingInSafari ? @"Disable Safari Debugging" : @"Debug in Safari";
|
||||
NSString *debugTitleSafari = isDebuggingInSafari ? @"Stop Safari Debugging" : @"Debug in Safari";
|
||||
[items addObject:[[RCTDevMenuItem alloc] initWithTitle:debugTitleSafari handler:^{
|
||||
self.executorClass = isDebuggingInSafari ? Nil : safariExecutorClass;
|
||||
}]];
|
||||
|
Loading…
x
Reference in New Issue
Block a user