mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 00:46:09 +08:00
Fix unwanted onbeforeunload message
This commit is contained in:
parent
bf5019ed0f
commit
35c05862a4
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user