getGamepads not supported fix

for browsers that don't support navigator.getGamepads()

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name        getGamepads not supported fix
// @namespace   http://bzzzzdzzzz.blogspot.com/
// @description for browsers that don't support navigator.getGamepads()
// @author      BZZZZ
// @include     *
// @version     0.1
// @grant       none
// @run-at      document-start
// ==/UserScript==

if(typeof window.navigator.getGamepads!=="function")window.navigator.getGamepads=window.Array;