Skip to content

Commit

Permalink
Update JS scripts to cover WasmStandalone project startup sequence.
Browse files Browse the repository at this point in the history
  • Loading branch information
msmithNI committed Oct 29, 2024
1 parent 9dfab22 commit b0de102
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,12 @@ export function afterServerStarted(_Blazor) {
handleRuntimeStarted();
}

// Blazor Web Apps, WASM Standalone apps with .NET 8
export function afterWebAssemblyStarted(_Blazor) {
if (!window.NimbleBlazor.hasRegisteredEvents) {
registerNimbleEvents(Blazor);
}

handleRuntimeStarted();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ export function afterServerStarted(_Blazor) {
handleRuntimeStarted();
}

// Blazor Web Apps, WASM Standalone apps with .NET 8
export function afterWebAssemblyStarted(_Blazor) {
if (!window.SprightBlazor.hasRegisteredEvents) {
registerSprightEvents(Blazor);
}

handleRuntimeStarted();
}

Expand Down

0 comments on commit b0de102

Please sign in to comment.