UNPKG

@mapbox/link-hijacker

Version:

Hijack clicks on and within links, probably for client-side routing

19 lines (10 loc) 295 B
# Changelog ## 1.1.0 - Add `preventDefault` option. ## 1.0.0 - Release 1.0.0, because it's time. ## 0.4.0 - **[Breaking change]**: Add `skipFragment` option, defaulting to `true`. So links to fragments (e.g. `href="#foo"`) are no longer hijacked by default. ## 0.3.2 - Start this log.