Commit ab598421 authored by ibuler's avatar ibuler

[Update] check iframe

parent 3c619311
......@@ -22,7 +22,8 @@ export class AppComponent {
@HostListener('window:beforeunload', ['$event'])
unloadNotification($event: any) {
if (environment.production) {
const notInIframe = window.self === window.top;
if (environment.production && notInIframe) {
$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