Commit afa13478 authored by ibuler's avatar ibuler

[Update] 录像页面不再显示确认关闭窗口

parent 170cda55
......@@ -23,7 +23,8 @@ export class AppComponent {
@HostListener('window:beforeunload', ['$event'])
unloadNotification($event: any) {
const notInIframe = window.self === window.top;
if (environment.production && notInIframe) {
const notInReplay = location.pathname.indexOf('/luna/replay') === -1;
if (environment.production && notInIframe && notInReplay) {
$event.returnValue = true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment