1
0
mirror of https://github.com/flarum/core.git synced 2025-07-27 11:40:24 +02:00

Fix unwanted onbeforeunload message

This commit is contained in:
Toby Zerner
2015-06-26 11:57:52 +09:30
parent bf5019ed0f
commit 35c05862a4

View File

@@ -72,7 +72,7 @@ class Composer extends Component {
.on('mouseup', this.handlers.onmouseup = this.onmouseup.bind(this));
window.onbeforeunload = e => {
return this.component && this.component.preventExit();
return (this.component && this.component.preventExit()) || null;
};
}