Hacker News new | past | comments | ask | show | jobs | submit login

To clarify I mean a onerror callback would be nice to have if something goes wrong when attempting to go fullscreen. If I have some time I'll write a patch!



My bad! There is a BigScreen.onerror, but I missed it in the docs.

It should cover most things, but I didn't fully test it. I also couldn't get any browser to fire the native event in my testing.


I think you can get it to fire if you trigger requestFullscreen outside of a user-initiated event? I'll have to check on that.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: