Skip to content

Commit ecbc0fe

Browse files
committed
Disconnect circuit on beforeunload event
1 parent c97a002 commit ecbc0fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Components/Web.JS/dist/Release/blazor.server.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/src/Boot.Server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function boot(userOptions?: Partial<CircuitStartOptions>): Promise<void> {
5757
};
5858

5959
window.addEventListener(
60-
'unload',
60+
'beforeunload',
6161
() => {
6262
const data = new FormData();
6363
const circuitId = circuit.circuitId!;

0 commit comments

Comments
 (0)