Skip to content

Instantly share code, notes, and snippets.

@videlais

videlais/visibility.js Secret

Created Dec 27, 2013
Embed
What would you like to do?
Visibility1
var Visibility = (function(self) {
self.supported = !!document.webkitHidden ||
!!document.mozHidden ||
!!document.msHidden ||
!!document.oHidden ||
!!document.hidden;
...
})(Visibility || {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.