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
This commit is contained in:
Ben Roth 2016-05-12 03:29:48 -07:00 коммит произвёл Facebook Github Bot 1
Родитель 85d2086321
Коммит 36b085422d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -474,7 +474,7 @@ RCT_EXTERN NSArray<Class> *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;