mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 09:55:50 +08:00
fix gamepad/gamepad-tests.ts
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
console.log('Gamepad ' + e.gamepad.index + ' disconnected!');
|
||||
}, false);
|
||||
|
||||
var requestAnimationFrame = window.requestAnimationFrame || window["mozRequestAnimationFrame"];
|
||||
var requestAnimationFrame = window.requestAnimationFrame || (<any>window).mozRequestAnimationFrame;
|
||||
var getGamepads = navigator.getGamepads || navigator.webkitGetGamepads;
|
||||
if(getGamepads){
|
||||
function runAnimation()
|
||||
|
||||
Reference in New Issue
Block a user