On an earlier version?
Update today.
@oblique-code/exit-intent notices when a visitor is about to leave and shows a friendly, accessible modal at the right moment. It is framework-agnostic and has zero runtime dependencies.
Version 1.0.2 closes two security gaps in the modal’s call-to-action button, so every site using it should update. It is a drop-in replacement.
npm i @oblique-code/ exit-intent@1.0.2Two gaps
now closed.
- Button links using
javascript:,data:orvbscript:are now blocked. The button renders as a plain button and a console warning explains why. - Button links that open in a new tab now get
rel="noopener noreferrer", which prevents reverse tabnabbing.
A steadier modal,
however it’s used.
- Re-opening the modal within 220 ms of closing it no longer removes it while it’s open.
ExitModal#destroy()now removes the overlay immediately, as documented.- Closing or destroying the modal before its first animation frame no longer throws an error or moves focus into the closed dialog.
- With
mobile.backButton, repeatedstop()andstart()cycles no longer add extra history entries.
Fresh tooling,
clean audit.
The development tools are upgraded and every npm audit advisory is resolved. These were development-only; the package itself has no runtime dependencies. Working on the package now needs Node.js 22.18 or later, and nothing changes for sites that use it. npm now links straight to the GitHub repository.