Skip to content

Commit

Permalink
Fix isNuclideDebuggingAvailable on iOS
Browse files Browse the repository at this point in the history
Reviewed By: bnham

Differential Revision: D6567435

fbshipit-source-id: e8c4d8a3e02fe767f5a6871db61b21faf181cc43
  • Loading branch information
pakoito authored and facebook-github-bot committed Dec 14, 2017
1 parent ee8a7b4 commit 59c3e33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion React/Modules/RCTDevSettings.mm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

#if RCT_ENABLE_INSPECTOR
#import "RCTInspectorDevServerHelper.h"
#import <jschelpers/JSCWrapper.h>
#endif

#if RCT_DEV
Expand Down Expand Up @@ -255,7 +256,7 @@ - (id)settingForKey:(NSString *)key
- (BOOL)isNuclideDebuggingAvailable
{
#if RCT_ENABLE_INSPECTOR
return true;
return facebook::react::isCustomJSCPtr(_bridge.jsContextRef);
#else
return false;
#endif //RCT_ENABLE_INSPECTOR
Expand Down

0 comments on commit 59c3e33

Please sign in to comment.