Skip to content

Conversation

@bobpskier
Copy link
Contributor

End a live chat should the browser window or tab be closed without first having closed the live chat manually

Issue #, if available:

Description of changes:

add logic to handle the beforeunload event and call method to end live chat if in the correct state.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@atjohns atjohns merged commit 211fa83 into aws-samples:development Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants