Disable onbeforeunload

This commit is contained in:
Thomas Weber committed 2021-01-04 18:37:29 -06:00
1 parent 629d832304
commit fa3f030d1c
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
if (typeof window === 'object') {
// Note: it might be better to use a listener instead of assigning onbeforeunload;
// but then it'd be hard to turn this listening off in our tests
window.onbeforeunload = e => this.leavePageConfirm(e);
// window.onbeforeunload = e => this.leavePageConfirm(e);
}
// Allow the GUI consumer to pass in a function to receive a trigger