We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be7e54 commit 31e1eb2Copy full SHA for 31e1eb2
modules/utils/supportsHistory.js
@@ -2,12 +2,14 @@ function supportsHistory() {
2
/*! taken from modernizr
3
* https://github.com/Modernizr/Modernizr/blob/master/LICENSE
4
* 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
6
*/
7
var ua = navigator.userAgent;
8
if ((ua.indexOf('Android 2.') !== -1 ||
9
(ua.indexOf('Android 4.0') !== -1)) &&
10
ua.indexOf('Mobile Safari') !== -1 &&
- ua.indexOf('Chrome') === -1) {
11
+ ua.indexOf('Chrome') === -1 &&
12
+ ua.indexOf('Windows Phone') === -1) {
13
return false;
14
}
15
return (window.history && 'pushState' in window.history);
0 commit comments