Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$.nette.ext('history') returns undefined iOS 10 #35

Open
jirkae opened this issue Oct 4, 2016 · 2 comments
Open

$.nette.ext('history') returns undefined iOS 10 #35

jirkae opened this issue Oct 4, 2016 · 2 comments

Comments

@jirkae
Copy link

jirkae commented Oct 4, 2016

After upgrading to iOS 10, there are this error $.nette.ext('history') (appear for example on this line: $.nette.ext('history').cache = false;)

@JakubJarabica
Copy link

Anybody looking into this, please?

@Tomas2D
Copy link

Tomas2D commented Dec 14, 2016

If you take a look at the beginning of history.ajax.js file, you can see this condition.

if (!(window.history && history.pushState && window.history.replaceState && !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]|WebApps\/.+CFNetwork)/))) return;

As you can see, history.ajax.js is not supported on iOS devices.

So you have add condition to your code.

if($.nette.ext('history') !== undefined) { // your code goes here .. }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants