Skip to content

Conversation

@ignat980
Copy link

  • Chrome has deprecated the unload event; DevTools shows “Unload event listeners are deprecated and will be removed.”
  • Replaced window.onunload with a pagehide listener to send unregisterTab.
  • Added a pageshow listener to re-register when restoring from the back/forward cache (event.persisted === true).
  • This removes the deprecation warning and should keep registration correct across navigations and bfcache restores.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant