mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 14:13:26 +00:00
Fix embeddedBundleURL update situation
Reviewed By: zahanm Differential Revision: D6432397 fbshipit-source-id: 163319c3c02976bcb49be3f0a54ce2928d0395f3
This commit is contained in:
parent
0c8a3e4f79
commit
d1fc8ef3a3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user