Skip to content
Snippets Groups Projects

Update regex so returns true when iOS version is greater than 10. (Fixes #536)

Merged Conrado Maggi requested to merge cmaggi/vtigercrm:536_pajax_iOS_Issues into master
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -644,7 +644,7 @@ if ( $.inArray('state', $.event.props) < 0 )
$.support.pjax =
window.history && window.history.pushState && window.history.replaceState
// pushState isn't reliable on iOS until 5.
&& !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/)
&& !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)
// Fall back to normalcy for older browsers.
if ( !$.support.pjax ) {
Loading