I'm using window.onbeforeunload to open a popup or confirmation alert to leave the web app, I notice that when I run window.onbeforeunload on devtools console, it returns skyway's function, not the function i provided to show and alert. Is there a way to override it?