browser-navigation-warning (npm): Will trigger the browsers default pop-up before navigating away.
Keywords: browser|onbeforeunload|refresh|navigation|prevent|route guard