|
|
|
@ -391,9 +391,16 @@ class MainContentContainer extends Component {
|
|
|
|
|
// var fileUpdatePromise = this.doFileUpdateRequest(true)
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
window.addEventListener("beforeunload", this.beforeunload);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
|
// window.$(window).off( "unload" )
|
|
|
|
|
window.removeEventListener("beforeunload", this.beforeunload);
|
|
|
|
|
}
|
|
|
|
|
beforeunload = () => {
|
|
|
|
|
this.doFileUpdateRequestOnCodeMirrorBlur()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|