2014-05-05 08:36:12 +02:00
|
|
|
|
module.exports = function() {
|
|
|
|
|
|
// Borrowed wholesale from https://github.com/defunkt/jquery-pjax
|
|
|
|
|
|
return window.history &&
|
|
|
|
|
|
window.history.pushState &&
|
|
|
|
|
|
window.history.replaceState &&
|
|
|
|
|
|
// pushState isn’t reliable on iOS until 5.
|
2014-10-14 08:16:26 +02:00
|
|
|
|
!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)
|
2014-05-05 08:36:12 +02:00
|
|
|
|
}
|