- From: Marcos Cáceres <notifications@github.com>
- Date: Thu, 13 Oct 2016 23:07:10 -0700
- To: w3c/manifest <manifest@noreply.github.com>
Received on Friday, 14 October 2016 06:07:38 UTC
marcoscaceres commented on this pull request.
> @@ -410,6 +463,94 @@ <h3 id="installation-sec">
</h2>
<section>
<h3>
+ <code>BeforeInstallPromptEvent</code>
+ </h3>
+ <pre class="idl">
+enum AppBannerPromptOutcome {
+ "accepted",
+ "dismissed"
+};
+
+[Constructor(DOMString typeArg, optional BeforeInstallPromptEventInit eventInit)]
+interface BeforeInstallPromptEvent : Event {
+ readonly attribute Promise<AppBannerPromptOutcome> userChoice;
Yes, it's actually really irritating :) Prompt should just return the user choice.
This would be so much nicer:
```
e.prompt().then(obj => obj.userChoice);
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/506
Received on Friday, 14 October 2016 06:07:38 UTC