This is a Next.js and Firebase project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser and select a website to go by clicking the address bar. You should see the onbeforeunload function in action.