Created
March 19, 2016 15:59
-
-
Save v/6c445cb4403e9e5215f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/components/Workspace.jsx b/src/components/Workspace.jsx | |
index eab71ed..2a24747 100644 | |
--- a/src/components/Workspace.jsx | |
+++ b/src/components/Workspace.jsx | |
@@ -58,11 +58,11 @@ class Workspace extends React.Component { | |
} | |
componentDidMount() { | |
- addEventListener('beforeunload', this._confirmUnload); | |
+ //addEventListener('beforeunload', this._confirmUnload); | |
} | |
componentWillUnmount() { | |
- removeEventListener('beforeunload', this._confirmUnload); | |
+ //removeEventListener('beforeunload', this._confirmUnload); | |
} | |
_confirmUnload(event) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment