Skip to content

Commit

Permalink
Also support wasm case
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Apr 12, 2024
1 parent e601978 commit abe7eab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Piral.Blazor.Core/JSBridge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ private static async Task AddDependencies(HttpClient client, AssemblyLoadContext

if (!available)
{
var symbols = string.Concat(url.AsSpan(0, url.Length - 4), ".pdb");
var ext = url.EndsWith(".wasm") ? ".wasm" : ".dll";
var symbols = string.Concat(url.AsSpan(0, url.Length - ext.Length), ".pdb");
var pdbUrl = (dependencySymbols?.Contains(symbols) ?? false) ? symbols : null;
await LoadAssemblyInContext(client, context, url, pdbUrl);
}
Expand Down

0 comments on commit abe7eab

Please sign in to comment.