Global event to capture browser close?

Hi,

I am looking for a global event I can use to do something when the browser is closed. I cannot use window.onunload as it fires everytime the page is reloaded. I cannot use the Accounts hooks as each login and logout hook fires everytime the page is reloaded and I cannot use meteor-status as the login and logout hooks fire every time the page is reloaded. Is there something I can use to capture when the browser is closed without the quirkiness of the page refreshing issues?

To my knowledge there is no separate event that will let you know that the browser window/tab was closed, beside the one you already mentioned, which also fires when user reloads the page.

1 Like

That is what I thought. I thought there is a way around this. There must be a way!