Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #646 from ebidel/master

Updating gamepads test to match new spec
  • Loading branch information...
commit eb5ed64df168b92030b5be5768692d010af670d8 2 parents 3102b23 + 684b8fb
@paulirish paulirish authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  feature-detects/gamepad.js
View
3  feature-detects/gamepad.js
@@ -2,4 +2,5 @@
// https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html
// By Eric Bidelman
-Modernizr.addTest('gamepads', !!Modernizr.prefixed('gamepads', navigator));
+Modernizr.addTest('gamepads', !!Modernizr.prefixed('gamepads', navigator) ||
+ !!Modernizr.prefixed('getGamepads', navigator));
Please sign in to comment.
Something went wrong with that request. Please try again.