Permalink
Browse files

Fix embeddedBundleURL update situation

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 d1fc8ef3a3cb3590b9cff4d1b3cc5d440b52ec8c
Showing with 2 additions and 4 deletions.
  1. +2 −4 Libraries/Image/resolveAssetSource.js
@@ -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;
}

0 comments on commit d1fc8ef

Please sign in to comment.