-
Notifications
You must be signed in to change notification settings - Fork 107
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
how to not call visibility if i made fullscreen #49
Comments
You do not need Visibility.js nowadays. Use standard API without extra library wrapper. |
|
do you do anything in this wrapper so that it helps to work it out for more browser versions that it's currently supported on that link you linked? |
Most modern browsers support Page Visibility API out of the box https://caniuse.com/#feat=mdn-api_document_onvisibilitychange |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So in my app, I have games and when I click
play
, what I do is callfullscreen
code which starts the game infullscreen
mode.Somewhere in my app, I have this piece of code:
Now, this works fine for all cases except
fullscreen
. The thing I want is whenfullscreen
gets activated, I don't want it to callconsole.log("coming here ?")
. I don't want it to do anything. Is this possible?The text was updated successfully, but these errors were encountered: