mirror of
https://github.com/flarum/framework.git
synced 2025-05-01 09:04:04 +08:00
Prevent empty beforeunload dialog on Internet Explorer
This commit is contained in:
parent
3efbffdcec
commit
f1c40eeccc
@ -124,7 +124,7 @@ class Composer extends Component {
|
|||||||
// component a chance to scream at the user to make sure they don't
|
// component a chance to scream at the user to make sure they don't
|
||||||
// unintentionally lose any contnet.
|
// unintentionally lose any contnet.
|
||||||
window.onbeforeunload = () => {
|
window.onbeforeunload = () => {
|
||||||
return (this.component && this.component.preventExit()) || null;
|
return (this.component && this.component.preventExit()) || undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
const handlers = {};
|
const handlers = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user