Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ protected override async Task OnAfterRenderAsync(bool firstRender)

ApplicationInsights.InitJSRuntime(JSRuntime);

// Explicitly import the JS module to ensure window.blazorApplicationInsights is defined.
// The .lib.module.js auto-loading mechanism is not reliable for NuGet-distributed RCLs,
// so we import it explicitly here before making any interop calls.
await JSRuntime.InvokeAsync<IJSObjectReference>(
"import",
"./_content/Imagile.Framework.Blazor.ApplicationInsights/Imagile.Framework.Blazor.ApplicationInsights.lib.module.js");

if (Config.Config != null)
{
try
Expand Down
Loading