Unverified Commit 7d50f83d authored by 老广's avatar 老广 Committed by GitHub

Merge pull request #51 from jumpserver/dev

[Update] check iframe
parents 1cc8c3e6 ab598421
......@@ -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