diff --git a/index.html b/index.html
index 27bff131c..2b73276c1 100644
--- a/index.html
+++ b/index.html
@@ -399,18 +399,17 @@
Queue a task on the application life-cycle task
source to do the following:
- - Let event be a newly constructed
- BeforeInstallPromptEvent named
- "beforeinstallprompt", which is cancelable.
+
- Let target be at Window object of the
+ top-level browsing context.
- -
- Fire event at the Window object of the
- top-level browsing context.
+
- Let showPrompt be the result of firing an
+ event (event) named "beforeinstallprompt", using
+ BeforeInstallPromptEvent at target with its
+
cancelable
attribute initialized to true.
- - If event's canceled flag is not set, then,
- in parallel, request to present an install prompt
- with event.
+
- If showPrompt is true, then, in parallel,
+ request to present an install prompt with
+ event.
@@ -495,15 +494,10 @@
BeforeInstallPromptEvent
Interface
- [Constructor(DOMString typeArg, optional BeforeInstallPromptEventInit eventInit)]
+ [Constructor]
interface BeforeInstallPromptEvent : Event {
Promise<PromptResponseObject> prompt();
};
-
- dictionary BeforeInstallPromptEventInit : EventInit {
- AppBannerPromptOutcome userChoice;
- };
-
dictionary PromptResponseObject {
AppBannerPromptOutcome userChoice;
};