Skip to content

Instantly share code, notes, and snippets.

@v
Created March 19, 2016 15:59
Show Gist options
  • Save v/6c445cb4403e9e5215f8 to your computer and use it in GitHub Desktop.
Save v/6c445cb4403e9e5215f8 to your computer and use it in GitHub Desktop.
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