Skip to content

Commit

Permalink
Align with IDL constructor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
autokagami authored and annevk committed Sep 24, 2019
1 parent 588e3fe commit 976813c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions notifications.bs
Original file line number Diff line number Diff line change
Expand Up @@ -590,9 +590,10 @@ must be run.
<h2 id=api>API</h2>

<pre class=idl>
[Constructor(DOMString title, optional NotificationOptions options = {}),
Exposed=(Window,Worker)]
[Exposed=(Window,Worker)]
interface Notification : EventTarget {
constructor(DOMString title, optional NotificationOptions options = {});

static readonly attribute NotificationPermission permission;
[Exposed=Window] static Promise&lt;NotificationPermission> requestPermission(optional NotificationPermissionCallback deprecatedCallback);

Expand Down Expand Up @@ -981,9 +982,10 @@ partial interface ServiceWorkerRegistration {
Promise&lt;sequence&lt;Notification>> getNotifications(optional GetNotificationOptions filter = {});
};

[Constructor(DOMString type, NotificationEventInit eventInitDict),
Exposed=ServiceWorker]
[Exposed=ServiceWorker]
interface NotificationEvent : ExtendableEvent {
constructor(DOMString type, NotificationEventInit eventInitDict);

readonly attribute Notification notification;
readonly attribute DOMString action;
};
Expand Down

0 comments on commit 976813c

Please sign in to comment.