|
534 | 534 | interface PushManager {
|
535 | 535 | [SameObject] static readonly attribute FrozenArray<DOMString> supportedContentEncodings;
|
536 | 536 |
|
537 |
| - Promise<PushSubscription> subscribe(optional PushSubscriptionOptionsInit options); |
| 537 | + Promise<PushSubscription> subscribe(optional PushSubscriptionOptionsInit options = {}); |
538 | 538 | Promise<PushSubscription?> getSubscription();
|
539 |
| - Promise<PushPermissionState> permissionState(optional PushSubscriptionOptionsInit options); |
| 539 | + Promise<PushPermissionState> permissionState(optional PushSubscriptionOptionsInit options = {}); |
540 | 540 | };
|
541 | 541 | </pre>
|
542 | 542 | <p>
|
@@ -1046,7 +1046,7 @@ <h2>
|
1046 | 1046 | <dfn>PushEvent</dfn> Interface
|
1047 | 1047 | </h2>
|
1048 | 1048 | <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] |
1050 | 1050 | interface PushEvent : ExtendableEvent {
|
1051 | 1051 | readonly attribute PushMessageData? data;
|
1052 | 1052 | };
|
@@ -1221,7 +1221,7 @@ <h2>
|
1221 | 1221 | <dfn>PushSubscriptionChangeEvent</dfn> Interface
|
1222 | 1222 | </h2>
|
1223 | 1223 | <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] |
1225 | 1225 | interface PushSubscriptionChangeEvent : ExtendableEvent {
|
1226 | 1226 | readonly attribute PushSubscription? newSubscription;
|
1227 | 1227 | readonly attribute PushSubscription? oldSubscription;
|
|
0 commit comments