Added user-agent check before modifying gamepad api