Skip to content

Commit

Permalink
fix: ensure taxi only targets links with a href attr
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewhiteley committed Dec 14, 2024
1 parent c087799 commit efafef1
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/taxi.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.modern.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.modern.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unseenco/taxi",
"description": "A modern page transition library which supports routing, preloading, and additional script reloading.",
"version": "1.7.0",
"version": "1.7.1",
"license": "GPL-3.0-or-later",
"source": "src/taxi.js",
"main": "src/taxi.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class Core {
*/
constructor(parameters = {}) {
const {
links = 'a:not([target]):not([href^=\\#]):not([data-taxi-ignore])',
links = 'a[href]:not([target]):not([href^=\\#]):not([data-taxi-ignore])',
removeOldContent = true,
allowInterruption = false,
bypassCache = false,
Expand Down

0 comments on commit efafef1

Please sign in to comment.