danielmahal / Rumpetroll

Rumpetroll is a massive-multiplayer experiment. It's purpose was to try out new open web technologies like WebSockets and Canvas.
http://www.rumpetroll.com
MIT License
769 stars 168 forks source link

Replace ua sniffing with feature detection #2

Closed miketaylr closed 13 years ago

miketaylr commented 13 years ago

Sniffing for Chrome or Safari in the UA string already fails in FF4beta and the latest Opera 10.70 desktop build, both of which support WebSockets. This change just does a simple feature detection before warning the user.

hpeikemo commented 13 years ago

Thanks Mike!

Our plan is to implement modernizr for feature detection.

If you're able to implement it and test for Modernizr.canvas && Modernizr.websockets I'll pull it into our repository right away.

miketaylr commented 13 years ago

Okay, no problem. Thanks!