summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/permissions-policy/resources/permissions-policy-bluetooth.html
blob: 2265bd01d2bd66cfa079e22a749e03e836e45785 (plain)
1
2
3
4
5
6
7
8
9
<script>
  'use strict';

  navigator.bluetooth.getDevices().then(devices => {
    window.parent.postMessage({ type: 'availability-result', enabled: true}, '*');
  }, error => {
    window.parent.postMessage({ type: 'availability-result', enabled: false }, '*');
  });
</script>