Disable onbeforeunload
This commit is contained in:
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user