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

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