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();