Skip to content

Commit 62f239a

Browse files
committed
pushState isn't reliable on iOS until 5
1 parent 0cc7fa4 commit 62f239a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.pjax.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@
118118
// Is pjax supported by this browser?
119119
$.support.pjax =
120120
window.history && window.history.pushState && window.history.replaceState
121-
// pushState isn't reliable on iOS yet.
122-
&& !navigator.userAgent.match(/(iPod|iPhone|iPad|WebApps\/.+CFNetwork)/);
121+
// pushState isn't reliable on iOS until 5.
122+
&& !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/);
123123

124124
// When called on a link, fetches the href with ajax into the
125125
// container specified as the first parameter or with the data-pjax

0 commit comments

Comments
 (0)