Don't prepend the asset name string with "file://" for unbundles
Summary: D2922108 / PR #5814 broke the “Unbundle” loader by prepending the file path to the entry file with "file://". This converts it back. Reviewed By: lexs Differential Revision: D3052749 fb-gh-sync-id: 0b241c50e25f1a1c85265915bee01582d0ba7ac6 shipit-source-id: 0b241c50e25f1a1c85265915bee01582d0ba7ac6
This commit is contained in:
parent
39fdce259d
commit
d0cdabc73e
|
@ -743,7 +743,7 @@ static void loadScriptFromAssets(JNIEnv* env, jobject obj, jobject assetManager,
|
|||
|
||||
env->CallStaticVoidMethod(markerClass, gLogMarkerMethod, env->NewStringUTF("loadScriptFromAssets_read"));
|
||||
if (JniJSModulesUnbundle::isUnbundle(manager, assetNameStr)) {
|
||||
loadApplicationUnbundle(bridge, manager, script, "file://" + assetNameStr);
|
||||
loadApplicationUnbundle(bridge, manager, script, assetNameStr);
|
||||
} else {
|
||||
loadApplicationScript(bridge, script, "file://" + assetNameStr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue