Skip to content

Commit

Permalink
Tweak Hot Loading gating code
Browse files Browse the repository at this point in the history
Reviewed By: mmahoney

Differential Revision: D2815537

fb-gh-sync-id: d0a4d5c2a831c52cf3be6051a348ae9ba996f545
  • Loading branch information
martinbigio authored and facebook-github-bot-9 committed Jan 15, 2016
1 parent 66158ab commit 0185df5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion React/Modules/RCTDevMenu.m
Expand Up @@ -531,7 +531,9 @@ - (void)setLiveReloadEnabled:(BOOL)enabled

- (BOOL)hotLoadingAvailable
{
return false;
return !_bridge.bundleURL.fileURL // Only works when running from server
&& [_bridge.delegate respondsToSelector:@selector(bridgeSupportsHotLoading:)]
&& [_bridge.delegate bridgeSupportsHotLoading:_bridge];
}

- (void)setHotLoadingEnabled:(BOOL)enabled
Expand Down

0 comments on commit 0185df5

Please sign in to comment.