File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ function supportsHistory() {
22 /*! taken from modernizr
33 * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
44 * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
5+ * changed to avoid false negatives for Windows Phones: https://github.com/rackt/react-router/issues/586
56 */
67 var ua = navigator . userAgent ;
78 if ( ( ua . indexOf ( 'Android 2.' ) !== - 1 ||
89 ( ua . indexOf ( 'Android 4.0' ) !== - 1 ) ) &&
910 ua . indexOf ( 'Mobile Safari' ) !== - 1 &&
10- ua . indexOf ( 'Chrome' ) === - 1 ) {
11+ ua . indexOf ( 'Chrome' ) === - 1 &&
12+ ua . indexOf ( 'Windows Phone' ) === - 1 ) {
1113 return false ;
1214 }
1315 return ( window . history && 'pushState' in window . history ) ;
You can’t perform that action at this time.
0 commit comments