diff --git a/src/views/public/ModeratedTestView.vue b/src/views/public/ModeratedTestView.vue index e2ebad183..c6b3b3125 100644 --- a/src/views/public/ModeratedTestView.vue +++ b/src/views/public/ModeratedTestView.vue @@ -993,7 +993,10 @@ export default { this.$toast.info('Use a session your session link to the test') this.$router.push('/managerview/' + this.test.id) } - + // save first to exit + window.onbeforeunload = function() { + return 'handle your events or msgs here' + } await this.mappingSteps() this.consentCompleted = this.currentUserTestAnswer.consentCompleted const ref = doc(db, 'tests/', this.roomTestId)