From b3d4241bd6e6dd410e2d87cd89bfdd239eaabeb0 Mon Sep 17 00:00:00 2001 From: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> Date: Tue, 15 Oct 2024 07:55:40 -0700 Subject: [PATCH] chore(client): remove unload event from exam/show.tsx (#56678) --- client/src/templates/Challenges/exam/show.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/src/templates/Challenges/exam/show.tsx b/client/src/templates/Challenges/exam/show.tsx index 2ebbe3c7566..e05bd2e30b2 100644 --- a/client/src/templates/Challenges/exam/show.tsx +++ b/client/src/templates/Challenges/exam/show.tsx @@ -257,7 +257,6 @@ class ShowExam extends Component { this.props.startExam(); window.addEventListener('beforeunload', this.stopWindowClose); - window.addEventListener('unload', this.stopWindowClose); window.addEventListener('popstate', this.stopBrowserBack); } ); @@ -298,7 +297,6 @@ class ShowExam extends Component { }); window.removeEventListener('beforeunload', this.stopWindowClose); - window.removeEventListener('unload', this.stopWindowClose); window.removeEventListener('popstate', this.stopBrowserBack); this.props.clearExamResults();