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

Check if hidden is available first #2656

Merged
merged 1 commit into from
Jul 23, 2016

Conversation

leobrines
Copy link
Contributor

This PR changes

  • Nothing, it's a bug fix

Check if 'document.hidden' is available first, and if it is then never even check for the prefix version. That will stop the warning (like "mozHidden and mozVisibilityState are deprecated") in newer versions of browsers and retain backward compatibility.

@photonstorm
Copy link
Collaborator

Awesome, thanks.

@photonstorm photonstorm merged commit 02d0785 into phaserjs:dev Jul 23, 2016
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

Successfully merging this pull request may close these issues.

2 participants