Skip to content

Commit

Permalink
Restrict requestDevice() to Window only
Browse files Browse the repository at this point in the history
  • Loading branch information
chengweih001 authored and nondebug committed Aug 4, 2023
1 parent 13112a8 commit dd7938d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ <h2>
attribute EventHandler onconnect;
attribute EventHandler ondisconnect;
Promise&lt;sequence&lt;HIDDevice&gt;&gt; getDevices();
Promise&lt;sequence&lt;HIDDevice&gt;&gt; requestDevice(
[Exposed=Window] Promise&lt;sequence&lt;HIDDevice&gt;&gt; requestDevice(
HIDDeviceRequestOptions options);
};
</pre>
Expand Down

0 comments on commit dd7938d

Please sign in to comment.