Skip to content

Commit

Permalink
Use localeFile to resolve path for assets outside of remoteSources
Browse files Browse the repository at this point in the history
Use localeFile to resolve path for assets outside of remoteSources, so that we can run from a different path than locate that dotnet.js exists

ref:  dotnet#69259
  • Loading branch information
yamachu committed May 17, 2022
1 parent 3f0c2cc commit a1c3c7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/wasm/runtime/startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ async function mono_download_assets(config: MonoConfig | MonoConfigError | undef
attemptUrl = locateFile(config.assembly_root + "/" + path);
}
else
attemptUrl = asset.name;
attemptUrl = locateFile(asset.name);
} else {
attemptUrl = sourcePrefix + asset.name;
}
Expand Down

0 comments on commit a1c3c7a

Please sign in to comment.