Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Feature Request - Handle onbeforeunload #16

Closed
gfranko opened this issue May 6, 2015 · 1 comment
Closed

Feature Request - Handle onbeforeunload #16

gfranko opened this issue May 6, 2015 · 1 comment
Labels

Comments

@gfranko
Copy link

gfranko commented May 6, 2015

We need to handle the situation when a user leaves a particular page and the window.onbeforeunload() method does not seem to be called with the router.

A possible solution would be to patch navigateAction.js to check if there is a window.onbeforeunload() method defined on the window, retrieve the string value from it, and then call window.confirm() with the appropriate string.

Thoughts?

@redonkulus
Copy link
Contributor

This was fixed by #19

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants