Skip to content

Commit

Permalink
Fix embeddedBundleURL update situation
Browse files Browse the repository at this point in the history
Reviewed By: zahanm

Differential Revision: D6432397

fbshipit-source-id: 163319c3c02976bcb49be3f0a54ce2928d0395f3
  • Loading branch information
Yujie Liu authored and facebook-github-bot committed Nov 29, 2017
1 parent 0c8a3e4 commit d1fc8ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Libraries/Image/resolveAssetSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ function getScriptURL(): ?string {
}

function getEmbeddedBundledURL(): ?string {
if (_embeddedBundleURL === undefined) {
const scriptURL = NativeModules.SourceCode.embeddedBundleURL;
_embeddedBundleURL = _coerceLocalScriptURL(scriptURL);
}
const scriptURL = NativeModules.SourceCode.embeddedBundleURL;
_embeddedBundleURL = _coerceLocalScriptURL(scriptURL);
return _embeddedBundleURL;
}

Expand Down

0 comments on commit d1fc8ef

Please sign in to comment.