Files
pjax/lib/is-supported.js

13 lines
360 B
JavaScript
Raw Normal View History

module.exports = function() {
// Borrowed wholesale from https://github.com/defunkt/jquery-pjax
2019-02-11 23:17:28 -05:00
return (
window.history &&
window.history.pushState &&
window.history.replaceState &&
// pushState isnt reliable on iOS until 5.
2019-02-11 23:17:28 -05:00
!navigator.userAgent.match(
/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/
)
);
};