Skip to content

Commit

Permalink
[Update] 录像页面不再显示确认关闭窗口
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Feb 14, 2019
1 parent 170cda5 commit afa1347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/pages/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit afa1347

Please sign in to comment.