-
@Birowsky @ChromiumDev If you stick to vanilla JS with no framework-based router,
onbeforeunloadmight be your best bet at the moment: developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload.
onbeforeunload might be your best bet at the moment: developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload.