Skip to content
Snippets Groups Projects
Commit e29184e1 authored by Ray Schamp's avatar Ray Schamp
Browse files

Warn user before navigating away/unloading

parent 508b10cd
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,11 @@ import ProjectLoaderHOC from './lib/project-loader-hoc.jsx';
import styles from './index.css';
if (process.env.NODE_ENV === 'production' && typeof window === 'object') {
// Warn before navigating away
window.onbeforeunload = () => true;
}
const App = AppStateHOC(ProjectLoaderHOC(GUI));
const appTarget = document.createElement('div');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment