Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add polyfill for navigation API. #1217

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add polyfill for navigation API. #1217

wants to merge 2 commits into from

Conversation

thet
Copy link
Member

@thet thet commented Jan 7, 2025

Note: Not used in Patternslib yet.

@thet thet changed the title Add polyfill for navigation API. Plus minor code improvements. Add polyfill for navigation API. Jan 7, 2025
@thet thet requested a review from petschki January 7, 2025 23:42
@thet thet force-pushed the navigate-event branch 6 times, most recently from 522ce45 to 234a0ee Compare January 14, 2025 23:26
thet added 2 commits January 16, 2025 01:29
This polyfill adds support for the "navigate" event on the navigation
object. We path "history.pushState" and "history.replaceState" to send
the "navigate" event on the "window.navigation" object when the URL
changes.

This polyfill is for current Firefox and Safari. Chrome based browsers
already support this.

More information on:
https://developer.mozilla.org/en-US/docs/Web/API/Navigation/navigate_event
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