Sign in
webkit
/
WebKit
/
ac9b8116eb05aa867afffdd98849e1d7daf6147c
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
feature-policy
/
resources
/
feature-policy-usb.html
blob: 99d47c6f3929bd61f7dfdefb1c5488c396abc172 [
file
] [
log
] [
blame
]
<script>
'use strict'
;
Promise
.
resolve
().
then
(()
=>
navigator
.
usb
.
getDevices
()).
then
(
devices
=>
{
window
.
parent
.
postMessage
({
enabled
:
true
},
'*'
);
},
error
=>
{
window
.
parent
.
postMessage
({
enabled
:
false
},
'*'
);
});
</script>