From 36b085422d99e7f42baba1cac0423d8a318a315e Mon Sep 17 00:00:00 2001 From: Ben Roth Date: Thu, 12 May 2016 03:29:48 -0700 Subject: [PATCH] Correctly test for HMR parameter in the bundle URL Summary: Closes https://github.com/facebook/react-native/pull/7525 Differential Revision: D3292314 Pulled By: javache fbshipit-source-id: 04090f7f1253e055278a6774f7e135833ae3d6f6 --- React/Base/RCTBatchedBridge.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/React/Base/RCTBatchedBridge.m b/React/Base/RCTBatchedBridge.m index fc07a8711..7318999d6 100644 --- a/React/Base/RCTBatchedBridge.m +++ b/React/Base/RCTBatchedBridge.m @@ -474,7 +474,7 @@ RCT_EXTERN NSArray *RCTGetModuleClasses(void); #if RCT_DEV - if (RCTGetURLQueryParam(self.bundleURL, @"hot")) { + if ([RCTGetURLQueryParam(self.bundleURL, @"hot") boolValue]) { NSString *path = [self.bundleURL.path substringFromIndex:1]; // strip initial slash NSString *host = self.bundleURL.host; NSNumber *port = self.bundleURL.port;