I tried onbeforeunload inside handleDOMEvents but it’s not working. Is there any way to detect the window close event please ?
onbeforeunload
isn’t a regular DOM event, and can’t be registered on arbitrary nodes, so handleDOMEvents
doesn’t work with that, no.
1 Like