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:
David Aurelio 2016-03-15 08:12:00 -07:00 committed by Facebook Github Bot 5
parent 39fdce259d
commit d0cdabc73e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}