Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 049f9de

Browse files
autofooliplukebjerring
authored andcommitted
1 parent 281997d commit 049f9de

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

interfaces/push-api.idl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ interface PushManager {
1717
Promise<PushPermissionState> permissionState(optional PushSubscriptionOptionsInit options);
1818
};
1919

20-
dictionary PushSubscriptionOptionsInit {
21-
boolean userVisibleOnly = false;
22-
(BufferSource or DOMString)? applicationServerKey = null;
23-
};
24-
2520
[Exposed=(Window,Worker), SecureContext]
2621
interface PushSubscriptionOptions {
2722
readonly attribute boolean userVisibleOnly;
2823
[SameObject] readonly attribute ArrayBuffer? applicationServerKey;
2924
};
3025

26+
dictionary PushSubscriptionOptionsInit {
27+
boolean userVisibleOnly = false;
28+
(BufferSource or DOMString)? applicationServerKey = null;
29+
};
30+
3131
[Exposed=(Window,Worker), SecureContext]
3232
interface PushSubscription {
3333
readonly attribute USVString endpoint;
@@ -64,20 +64,15 @@ partial interface ServiceWorkerGlobalScope {
6464
attribute EventHandler onpushsubscriptionchange;
6565
};
6666

67-
typedef (BufferSource or USVString) PushMessageDataInit;
68-
69-
dictionary PushEventInit : ExtendableEventInit {
70-
PushMessageDataInit data;
71-
};
72-
7367
[Constructor(DOMString type, optional PushEventInit eventInitDict), Exposed=ServiceWorker, SecureContext]
7468
interface PushEvent : ExtendableEvent {
7569
readonly attribute PushMessageData? data;
7670
};
7771

78-
dictionary PushSubscriptionChangeInit : ExtendableEventInit {
79-
PushSubscription newSubscription = null;
80-
PushSubscription oldSubscription = null;
72+
typedef (BufferSource or USVString) PushMessageDataInit;
73+
74+
dictionary PushEventInit : ExtendableEventInit {
75+
PushMessageDataInit data;
8176
};
8277

8378
[Constructor(DOMString type, optional PushSubscriptionChangeInit eventInitDict), Exposed=ServiceWorker, SecureContext]
@@ -86,6 +81,11 @@ interface PushSubscriptionChangeEvent : ExtendableEvent {
8681
readonly attribute PushSubscription? oldSubscription;
8782
};
8883

84+
dictionary PushSubscriptionChangeInit : ExtendableEventInit {
85+
PushSubscription newSubscription = null;
86+
PushSubscription oldSubscription = null;
87+
};
88+
8989
enum PushPermissionState {
9090
"denied",
9191
"granted",

0 commit comments

Comments
 (0)