Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56f77ec

Browse files
Martin Konicekfacebook-github-bot-2
Martin Konicek
authored and
facebook-github-bot-2
committed
Tweak debug menu labels
Reviewed By: @kmagiera Differential Revision: D2430890
1 parent c03dad1 commit 56f77ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

React/Modules/RCTDevMenu.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,15 +286,15 @@ - (NSArray *)menuItems
286286
}]];
287287
} else {
288288
BOOL isDebuggingInChrome = _executorClass && _executorClass == chromeExecutorClass;
289-
NSString *debugTitleChrome = isDebuggingInChrome ? @"Disable Chrome Debugging" : @"Debug in Chrome";
289+
NSString *debugTitleChrome = isDebuggingInChrome ? @"Stop Chrome Debugging" : @"Debug in Chrome";
290290
[items addObject:[[RCTDevMenuItem alloc] initWithTitle:debugTitleChrome handler:^{
291291
self.executorClass = isDebuggingInChrome ? Nil : chromeExecutorClass;
292292
}]];
293293
}
294294

295295
Class safariExecutorClass = NSClassFromString(@"RCTWebViewExecutor");
296296
BOOL isDebuggingInSafari = _executorClass && _executorClass == safariExecutorClass;
297-
NSString *debugTitleSafari = isDebuggingInSafari ? @"Disable Safari Debugging" : @"Debug in Safari";
297+
NSString *debugTitleSafari = isDebuggingInSafari ? @"Stop Safari Debugging" : @"Debug in Safari";
298298
[items addObject:[[RCTDevMenuItem alloc] initWithTitle:debugTitleSafari handler:^{
299299
self.executorClass = isDebuggingInSafari ? Nil : safariExecutorClass;
300300
}]];

0 commit comments

Comments
 (0)