- Code: Select all
@HostListener('window:beforeunload', ['$event'])
onBeforeUnload() {
return window.confirm('There is the unsaved message....');
}
Right know in the moment when a normal browser shows the popup, JCEF prints to the log:
[INFO:CONSOLE(0)] "Blocked confirm('There is the unsaved message....') during beforeunload."
How can I configure JCEF to show this popup?