diff --git a/src/lib/project-saver-hoc.jsx b/src/lib/project-saver-hoc.jsx index d00dff948..32ef918d7 100644 --- a/src/lib/project-saver-hoc.jsx +++ b/src/lib/project-saver-hoc.jsx @@ -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