summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/gamepad/feature-policy-gamepad.html
blob: 2747a04b34f427b4a27a536dcfcdeae800d652b0 (plain)
1
2
3
4
5
6
7
8
<script>
  try {
    const test = navigator.getGamepads();
    if (test) window.parent.postMessage({ enabled: true }, "*");
  } catch (err) {
    window.parent.postMessage({ enabled: false }, "*");
  }
</script>