Skip to content

Commit 5a9c856

Browse files
vertonghenbBenjamin VertonghenIvanJosipovic
authored
fix: Auto Loading JS before blazor starts (#283)
Fixes #282 Co-authored-by: Benjamin Vertonghen <[email protected]> Co-authored-by: Ivan Josipovic <[email protected]>
1 parent 20023b7 commit 5a9c856

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/BlazorApplicationInsights/Components/ApplicationInsightsInit.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
@if (!IsWasmStandalone)
44
{
55
@((MarkupString)script)
6-
<script src="_content/BlazorApplicationInsights/JsInterop.js"></script>
6+
<script src="_content/BlazorApplicationInsights/BlazorApplicationInsights.lib.module.js"></script>
77
}

src/BlazorApplicationInsights/Components/ApplicationInsightsInit.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
4242

4343
if (firstRender && IsWasmStandalone)
4444
{
45-
await JSRuntime.InvokeAsync<IJSObjectReference>("import", "./_content/BlazorApplicationInsights/JsInterop.js");
45+
await JSRuntime.InvokeAsync<IJSObjectReference>("import", "./_content/BlazorApplicationInsights/BlazorApplicationInsights.lib.module.js");
4646

4747
if (Config.Config != null)
4848
{

0 commit comments

Comments
 (0)