Prevent empty beforeunload dialog on Internet Explorer

This commit is contained in:
Toby Zerner 2015-09-25 23:21:10 +09:30
parent e65536cdf8
commit 9347d79913

View File

@ -124,7 +124,7 @@ class Composer extends Component {
// component a chance to scream at the user to make sure they don't
// unintentionally lose any contnet.
window.onbeforeunload = () => {
return (this.component && this.component.preventExit()) || null;
return (this.component && this.component.preventExit()) || undefined;
};
const handlers = {};