mirror of
https://github.com/tailscale/tailscale.git
synced 2025-03-20 21:21:36 +00:00

The window may not end up getting unloaded (if other beforeunload handlers prevent the event), thus we should only close the SSH session if it's truly getting unloaded. Updates tailscale/corp#7304 Signed-off-by: Mihai Parparita <mihai@tailscale.com>