blob: 8812ca7db9a8288e4a820bc282a9febb74903971 (
plain)
1
2
3
4
5
6
7
8
9
|
<script>
'use strict';
Promise.resolve().then(() => navigator.usb.getDevices()).then(devices => {
window.parent.postMessage({ type: 'availability-result', enabled: true }, '*');
}, error => {
window.parent.postMessage({ type: 'availability-result', enabled: false }, '*');
});
</script>
|