Hello!
I?ve done some research and determined that there is no way to detect when browser is closing. And my question is why? Are there certain reasons or browser developers just think it?s not important API?
I?ve seen windows.onRemoved that not calls on last window, and some other ugly workaround…