I want to check when someone tries to refresh a page.
For example, when I open a page nothing happens but when I refresh the page it should display an alert.
if
event.currentTarget.performance.navigation.type
returns
0 => user just typed in an Url 1 => page reloaded 2 => back button clicked.