Skip to content

Commit 9179964

Browse files
author
Marcos Cáceres
authored
Update to Web IDL changes to optional dictionary defaulting (#308)
1 parent 57c732c commit 9179964

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,9 @@ <h2>
534534
interface PushManager {
535535
[SameObject] static readonly attribute FrozenArray&lt;DOMString&gt; supportedContentEncodings;
536536

537-
Promise&lt;PushSubscription&gt; subscribe(optional PushSubscriptionOptionsInit options);
537+
Promise&lt;PushSubscription&gt; subscribe(optional PushSubscriptionOptionsInit options = {});
538538
Promise&lt;PushSubscription?&gt; getSubscription();
539-
Promise&lt;PushPermissionState&gt; permissionState(optional PushSubscriptionOptionsInit options);
539+
Promise&lt;PushPermissionState&gt; permissionState(optional PushSubscriptionOptionsInit options = {});
540540
};
541541
</pre>
542542
<p>
@@ -1046,7 +1046,7 @@ <h2>
10461046
<dfn>PushEvent</dfn> Interface
10471047
</h2>
10481048
<pre class="idl" data-cite="service-workers">
1049-
[Constructor(DOMString type, optional PushEventInit eventInitDict), Exposed=ServiceWorker, SecureContext]
1049+
[Constructor(DOMString type, optional PushEventInit eventInitDict = {}), Exposed=ServiceWorker, SecureContext]
10501050
interface PushEvent : ExtendableEvent {
10511051
readonly attribute PushMessageData? data;
10521052
};
@@ -1221,7 +1221,7 @@ <h2>
12211221
<dfn>PushSubscriptionChangeEvent</dfn> Interface
12221222
</h2>
12231223
<pre class="idl" data-cite="service-workers">
1224-
[Constructor(DOMString type, optional PushSubscriptionChangeInit eventInitDict), Exposed=ServiceWorker, SecureContext]
1224+
[Constructor(DOMString type, optional PushSubscriptionChangeInit eventInitDict = {}), Exposed=ServiceWorker, SecureContext]
12251225
interface PushSubscriptionChangeEvent : ExtendableEvent {
12261226
readonly attribute PushSubscription? newSubscription;
12271227
readonly attribute PushSubscription? oldSubscription;

0 commit comments

Comments
 (0)