mirror of
https://github.com/flarum/core.git
synced 2025-07-21 16:51:34 +02:00
Fix unwanted onbeforeunload message
This commit is contained in:
@@ -72,7 +72,7 @@ class Composer extends Component {
|
|||||||
.on('mouseup', this.handlers.onmouseup = this.onmouseup.bind(this));
|
.on('mouseup', this.handlers.onmouseup = this.onmouseup.bind(this));
|
||||||
|
|
||||||
window.onbeforeunload = e => {
|
window.onbeforeunload = e => {
|
||||||
return this.component && this.component.preventExit();
|
return (this.component && this.component.preventExit()) || null;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user