Skip to content

Commit 9f606db

Browse files
Merge pull request vojtech-dobes#34 from hranicka/hotfix/ios10
JS: Support for iOS >=10
2 parents 6ea2724 + 06fe393 commit 9f606db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client-side/history.ajax.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
(function($, undefined) {
22

33
// Is History API reliably supported? (based on Modernizr & PJAX)
4-
if (!(window.history && history.pushState && window.history.replaceState && !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/))) return;
4+
if (!(window.history && history.pushState && window.history.replaceState)) {
5+
return;
6+
}
57

68
$.nette.ext('redirect', false);
79

0 commit comments

Comments
 (0)