提交 f96ea6c1 编写于 作者: B Benjamin Pasero

web - register beforeunload listener so that there can be others

上级 57ddfdd9
......@@ -22,7 +22,7 @@ export class BrowserLifecycleService extends AbstractLifecycleService {
}
private registerListeners(): void {
window.onbeforeunload = () => this.beforeUnload();
window.addEventListener('beforeunload', () => this.beforeUnload());
}
private beforeUnload(): string | null {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册