Confirm Page Refresh with Stimulus

Loosing data because of an accidental page refresh is no fun! This super-simple Stimulus controller shows a dialog before your user can refresh the page.