Closed SReject closed 4 years ago
What's wrong with document.hidden
and the rest of the Document Visibility API?
https://www.html5rocks.com/en/tutorials/pagevisibility/intro/
Just tested this myself - document.hidden definitely seems to do the job.
Would be nice if there was a function similar to
getCurrentScene
that would return the visibility state.