Skip to content

Commit

Permalink
fix for mousedown event
Browse files Browse the repository at this point in the history
  • Loading branch information
geckod22 committed Nov 27, 2024
1 parent 96f9b80 commit a78673c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/linkPrefetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ document.addEventListener( 'DOMContentLoaded', () => {

handleMouseDown( event ) {
const el = event.target.closest( 'a' );
this.prefetchIfEligible( el?.href );
this.prefetchIfEligible( el?.href ) && this.prefetchIt( el?.href );
}

handleInstantClick( event ) {
Expand Down

0 comments on commit a78673c

Please sign in to comment.