diff --git a/js/adapt-stateful-session.js b/js/adapt-stateful-session.js index 5cfa142a..0c8c68a0 100644 --- a/js/adapt-stateful-session.js +++ b/js/adapt-stateful-session.js @@ -114,7 +114,7 @@ export default class StatefulSession extends Backbone.Controller { if (shouldCommitOnVisibilityChange) { document.addEventListener('visibilitychange', this.onVisibilityChange); } - $(window).on('beforeunload unload', this.endSession); + $(window).on('beforeunload unload pagehide', this.endSession); } async saveSessionState() { @@ -261,7 +261,7 @@ export default class StatefulSession extends Backbone.Controller { } removeEventListeners() { - $(window).off('beforeunload unload', this.endSession); + $(window).off('beforeunload unload pagehide', this.endSession); document.removeEventListener('visibilitychange', this.onVisibilityChange); this.stopListening(); } diff --git a/required/log_output.html b/required/log_output.html index e0ef0412..06dd8d6c 100644 --- a/required/log_output.html +++ b/required/log_output.html @@ -52,7 +52,7 @@ -
+