We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7514b7 commit a31b813Copy full SHA for a31b813
crates/web-sys/webidls/enabled/Worklet.webidl
@@ -7,8 +7,13 @@
7
* https://drafts.css-houdini.org/worklets/#idl-index
8
*/
9
10
-[Pref="dom.worklet.enabled"]
+[Pref="dom.worklet.enabled",
11
+ Exposed=Window]
12
interface Worklet {
13
[NewObject, Throws, NeedsCallerType]
- Promise<void> import(USVString moduleURL);
14
+ Promise<void> addModule(USVString moduleURL, optional WorkletOptions options = {});
15
+};
16
+
17
+dictionary WorkletOptions {
18
+ RequestCredentials credentials = "same-origin";
19
};
0 commit comments