Skip to content

Commit 980f635

Browse files
committed
Merge pull request #263 from EmmanuelVella/patch-1
Use hostname instead of host
2 parents ae7964d + 733e8a2 commit 980f635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.pjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function handleClick(event, container, options) {
7070
return
7171

7272
// Ignore cross origin links
73-
if ( location.protocol !== link.protocol || location.host !== link.host )
73+
if ( location.protocol !== link.protocol || location.hostname !== link.hostname )
7474
return
7575

7676
// Ignore anchors on the same page

0 commit comments

Comments
 (0)