Skip to content

Commit 59c3e33

Browse files
pakoitofacebook-github-bot
authored andcommittedDec 14, 2017
Fix isNuclideDebuggingAvailable on iOS
Reviewed By: bnham Differential Revision: D6567435 fbshipit-source-id: e8c4d8a3e02fe767f5a6871db61b21faf181cc43
1 parent ee8a7b4 commit 59c3e33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎React/Modules/RCTDevSettings.mm

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
#if RCT_ENABLE_INSPECTOR
4444
#import "RCTInspectorDevServerHelper.h"
45+
#import <jschelpers/JSCWrapper.h>
4546
#endif
4647

4748
#if RCT_DEV
@@ -255,7 +256,7 @@ - (id)settingForKey:(NSString *)key
255256
- (BOOL)isNuclideDebuggingAvailable
256257
{
257258
#if RCT_ENABLE_INSPECTOR
258-
return true;
259+
return facebook::react::isCustomJSCPtr(_bridge.jsContextRef);
259260
#else
260261
return false;
261262
#endif //RCT_ENABLE_INSPECTOR

0 commit comments

Comments
 (0)