Skip to content

Commit

Permalink
Fix download attribute check
Browse files Browse the repository at this point in the history
  • Loading branch information
luruke committed Sep 11, 2016
1 parent e099efe commit 4d5b184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pjax/Pjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ var Pjax = {
return false;

//Ignore case where there is download attribute
if (typeof element.download !== 'undefined')
if (element.getAttribute && typeof element.download === 'string')
return false;

//In case you're trying to load the same page
Expand Down

0 comments on commit 4d5b184

Please sign in to comment.